org.mockserver.mock
Class Expectation

java.lang.Object
  extended by org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
      extended by org.mockserver.model.ObjectWithJsonToString
          extended by org.mockserver.mock.Expectation

public class Expectation
extends ObjectWithJsonToString

Author:
jamesdbloom

Field Summary
 
Fields inherited from class org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
logger
 
Constructor Summary
Expectation(HttpRequest httpRequest, Times times, TimeToLive timeToLive)
           
 
Method Summary
 boolean contains(HttpRequest httpRequest)
           
 void decrementRemainingMatches()
           
 Action getAction()
           
 HttpClassCallback getHttpClassCallback()
           
 HttpError getHttpError()
           
 HttpForward getHttpForward()
           
 HttpObjectCallback getHttpObjectCallback()
           
 HttpRequest getHttpRequest()
           
 HttpResponse getHttpResponse()
           
 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)
           
 
Methods inherited from class org.mockserver.model.ObjectWithJsonToString
toString
 
Methods inherited from class org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
addFieldsExcludedFromEqualsAndHashCode, equals, fieldsExcludedFromEqualsAndHashCode, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Expectation

public Expectation(HttpRequest httpRequest,
                   Times times,
                   TimeToLive timeToLive)
Method Detail

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.