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