public class Expectation extends ObjectWithJsonToString
logger
Constructor and Description |
---|
Expectation(HttpRequest httpRequest) |
Expectation(HttpRequest httpRequest,
Times times,
TimeToLive timeToLive) |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(HttpRequest httpRequest) |
Expectation |
decrementRemainingMatches() |
Action |
getAction() |
HttpClassCallback |
getHttpClassCallback() |
HttpError |
getHttpError() |
HttpForward |
getHttpForward() |
HttpTemplate |
getHttpForwardTemplate() |
HttpObjectCallback |
getHttpObjectCallback() |
HttpRequest |
getHttpRequest() |
HttpResponse |
getHttpResponse() |
HttpTemplate |
getHttpResponseTemplate() |
Times |
getTimes() |
TimeToLive |
getTimeToLive() |
boolean |
isActive() |
void |
setNotUnlimitedResponses() |
Expectation |
thenCallback(HttpClassCallback httpClassCallback) |
Expectation |
thenCallback(HttpObjectCallback httpObjectCallback) |
Expectation |
thenError(HttpError httpError) |
Expectation |
thenForward(HttpForward httpForward) |
Expectation |
thenForward(HttpTemplate httpTemplate) |
Expectation |
thenRespond(HttpResponse httpResponse) |
Expectation |
thenRespond(HttpTemplate httpTemplate) |
toString
addFieldsExcludedFromEqualsAndHashCode, equals, fieldsExcludedFromEqualsAndHashCode, hashCode
public Expectation(HttpRequest httpRequest)
public Expectation(HttpRequest httpRequest, Times times, TimeToLive timeToLive)
public HttpRequest getHttpRequest()
public HttpResponse getHttpResponse()
public HttpTemplate getHttpResponseTemplate()
public HttpTemplate getHttpForwardTemplate()
public HttpForward getHttpForward()
public HttpError getHttpError()
public HttpClassCallback getHttpClassCallback()
public HttpObjectCallback getHttpObjectCallback()
public Action getAction()
public Times getTimes()
public TimeToLive getTimeToLive()
public Expectation thenRespond(HttpResponse httpResponse)
public Expectation thenRespond(HttpTemplate httpTemplate)
public Expectation thenForward(HttpForward httpForward)
public Expectation thenForward(HttpTemplate httpTemplate)
public Expectation thenError(HttpError httpError)
public Expectation thenCallback(HttpClassCallback httpClassCallback)
public Expectation thenCallback(HttpObjectCallback httpObjectCallback)
public boolean isActive()
public Expectation decrementRemainingMatches()
public void setNotUnlimitedResponses()
public boolean contains(HttpRequest httpRequest)
Copyright © 2018. All rights reserved.