org.springframework.social.test.client
Class MockClientHttpRequestFactory

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

public class MockClientHttpRequestFactory
extends java.lang.Object
implements ClientHttpRequestFactory

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


Constructor Summary
MockClientHttpRequestFactory()
           
 
Method Summary
 MockClientHttpRequest createRequest(java.net.URI uri, 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,
                                           HttpMethod httpMethod)
                                    throws java.io.IOException
Specified by:
createRequest in interface ClientHttpRequestFactory
Throws:
java.io.IOException