java.lang.Object
org.apache.commons.httpclient.HttpClient
com.mockobjects.apache.commons.httpclient.MockHttpClient
- All Implemented Interfaces:
- com.mockobjects.Verifiable
- public class MockHttpClient
- extends org.apache.commons.httpclient.HttpClient
- implements com.mockobjects.Verifiable
| Fields inherited from class org.apache.commons.httpclient.HttpClient |
|
| Methods inherited from class org.apache.commons.httpclient.HttpClient |
executeMethod, executeMethod, getHost, getHostConfiguration, getHttpConnectionManager, getParams, getPort, getState, isStrictMode, setConnectionTimeout, setHostConfiguration, setHttpConnectionFactoryTimeout, setHttpConnectionManager, setParams, setStrictMode, setTimeout |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
method
private final com.mockobjects.ExpectationValue method
body
private final com.mockobjects.ExpectationValue body
statusCode
private int statusCode
httpState
private com.mockobjects.ExpectationValue httpState
MockHttpClient
public MockHttpClient()
setExpectedMethod
public void setExpectedMethod(org.apache.commons.httpclient.HttpMethod method)
setExpectedBody
public void setExpectedBody(java.lang.String body)
executeMethod
public int executeMethod(org.apache.commons.httpclient.HttpMethod method)
- Description copied from class:
org.apache.commons.httpclient.HttpClient
- Executes the given HTTP method.
setupStatusCode
public void setupStatusCode(int statusCode)
setState
public void setState(org.apache.commons.httpclient.HttpState httpState)
- Description copied from class:
org.apache.commons.httpclient.HttpClient
- Assigns HTTP state for the HttpClient.
setExpectedState
public void setExpectedState(org.apache.commons.httpclient.HttpState httpState)
verify
public void verify()
- Description copied from interface:
com.mockobjects.Verifiable
- Throw an AssertionFailedException if any expectations have not been met.
- Specified by:
verify in interface com.mockobjects.Verifiable