public class Expectation extends ObjectWithJsonToString
Modifier and Type | Field and Description |
---|---|
static Comparator<Expectation> |
EXPECTATION_PRIORITY_COMPARATOR |
Constructor and Description |
---|
Expectation(HttpRequest httpRequest) |
Expectation(HttpRequest httpRequest,
Times times,
TimeToLive timeToLive,
Integer priority) |
toString
equals, hashCode
public static final Comparator<Expectation> EXPECTATION_PRIORITY_COMPARATOR
public Expectation(HttpRequest httpRequest)
public Expectation(HttpRequest httpRequest, Times times, TimeToLive timeToLive, Integer priority)
public static Expectation when(HttpRequest httpRequest)
public static Expectation when(HttpRequest httpRequest, Integer priority)
public static Expectation when(HttpRequest httpRequest, Times times, TimeToLive timeToLive)
public static Expectation when(HttpRequest httpRequest, Times times, TimeToLive timeToLive, Integer priority)
public Expectation withId(String key)
public String getId()
public Integer getPriority()
public Expectation withCreated(long created)
public long getCreated()
public HttpRequest getHttpRequest()
public HttpResponse getHttpResponse()
public HttpTemplate getHttpResponseTemplate()
public HttpClassCallback getHttpResponseClassCallback()
public HttpObjectCallback getHttpResponseObjectCallback()
public HttpForward getHttpForward()
public HttpTemplate getHttpForwardTemplate()
public HttpClassCallback getHttpForwardClassCallback()
public HttpObjectCallback getHttpForwardObjectCallback()
public HttpOverrideForwardedRequest getHttpOverrideForwardedRequest()
public HttpError getHttpError()
public Action getAction()
public Times getTimes()
public TimeToLive getTimeToLive()
public Expectation thenRespond(HttpResponse httpResponse)
public Expectation thenRespond(HttpTemplate httpTemplate)
public Expectation thenRespond(HttpClassCallback httpClassCallback)
public Expectation thenRespond(HttpObjectCallback httpObjectCallback)
public Expectation thenForward(HttpForward httpForward)
public Expectation thenForward(HttpTemplate httpTemplate)
public Expectation thenForward(HttpClassCallback httpClassCallback)
public Expectation thenForward(HttpObjectCallback httpObjectCallback)
public Expectation thenForward(HttpOverrideForwardedRequest httpOverrideForwardedRequest)
public Expectation thenError(HttpError httpError)
public boolean isActive()
public boolean decrementRemainingMatches()
public boolean contains(HttpRequest httpRequest)
public Expectation clone()
public String[] fieldsExcludedFromEqualsAndHashCode()
fieldsExcludedFromEqualsAndHashCode
in class ObjectWithReflectiveEqualsHashCodeToString
Copyright © 2020. All rights reserved.