org.mockserver.mock
Class Expectation
java.lang.Object
org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
org.mockserver.model.ObjectWithJsonToString
org.mockserver.mock.Expectation
public class Expectation
- extends ObjectWithJsonToString
- Author:
- jamesdbloom
Expectation
public Expectation(HttpRequest httpRequest,
Times times,
TimeToLive timeToLive)
getHttpRequest
public HttpRequest getHttpRequest()
getHttpResponse
public HttpResponse getHttpResponse()
getHttpForward
public HttpForward getHttpForward()
getHttpError
public HttpError getHttpError()
getHttpClassCallback
public HttpClassCallback getHttpClassCallback()
getHttpObjectCallback
public HttpObjectCallback getHttpObjectCallback()
getAction
public Action getAction()
getTimes
public Times getTimes()
getTimeToLive
public TimeToLive getTimeToLive()
thenRespond
public Expectation thenRespond(HttpResponse httpResponse)
thenForward
public Expectation thenForward(HttpForward httpForward)
thenError
public Expectation thenError(HttpError httpError)
thenCallback
public Expectation thenCallback(HttpClassCallback httpClassCallback)
thenCallback
public Expectation thenCallback(HttpObjectCallback httpObjectCallback)
matches
public boolean matches(HttpRequest httpRequest)
hasRemainingMatches
public boolean hasRemainingMatches()
isStillAlive
public boolean isStillAlive()
decrementRemainingMatches
public void decrementRemainingMatches()
setNotUnlimitedResponses
public void setNotUnlimitedResponses()
contains
public boolean contains(HttpRequest httpRequest)
Copyright © 2017. All rights reserved.