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(boolean applyDelay)
getHttpResponse
public HttpResponse getHttpResponse()
getHttpForward
public HttpForward getHttpForward()
getHttpCallback
public HttpCallback getHttpCallback()
getAction
public Action getAction(boolean applyDelay)
getTimes
public Times getTimes()
getTimeToLive
public TimeToLive getTimeToLive()
thenRespond
public Expectation thenRespond(HttpResponse httpResponse)
thenForward
public Expectation thenForward(HttpForward httpForward)
thenCallback
public Expectation thenCallback(HttpCallback httpCallback)
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 © 2015. All rights reserved.