Spring Social

org.springframework.social.test.client
Class MockClientHttpRequestFactory

java.lang.Object
  extended by org.springframework.social.test.client.MockClientHttpRequestFactory
All Implemented Interfaces:
org.springframework.http.client.ClientHttpRequestFactory

public class MockClientHttpRequestFactory
extends java.lang.Object
implements org.springframework.http.client.ClientHttpRequestFactory

Mock implementation of ClientHttpRequestFactory. Contains a list of expected MockClientHttpRequests, and iterates over those.

Author:
Arjen Poutsma, Lukas Krecan, Craig Walls

Constructor Summary
MockClientHttpRequestFactory()
           
 
Method Summary
 MockClientHttpRequest createRequest(java.net.URI uri, org.springframework.http.HttpMethod httpMethod)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockClientHttpRequestFactory

public MockClientHttpRequestFactory()
Method Detail

createRequest

public MockClientHttpRequest createRequest(java.net.URI uri,
                                           org.springframework.http.HttpMethod httpMethod)
                                    throws java.io.IOException
Specified by:
createRequest in interface org.springframework.http.client.ClientHttpRequestFactory
Throws:
java.io.IOException

Spring Social