Uses of Class
org.mockserver.mock.Expectation
-
-
Uses of Expectation in org.mockserver.client
Methods in org.mockserver.client that return Expectation Modifier and Type Method Description Expectation[]
MockServerClient. retrieveActiveExpectations(HttpRequest httpRequest)
Retrieve the active expectations match the httpRequest parameter, use null for the parameter to retrieve all expectationsExpectation[]
MockServerClient. retrieveRecordedExpectations(HttpRequest httpRequest)
Retrieve the request-response combinations that have been recorded as a list of expectations, only those that match the httpRequest parameter are returned, use null to retrieve all requestsMethods in org.mockserver.client with parameters of type Expectation Modifier and Type Method Description void
MockServerClient. sendExpectation(Expectation... expectations)
Specify one or more expectations, normally this method should not be used directly instead the when(...) and response(...) or forward(...) or error(...) methods should be used for example: -
Uses of Expectation in org.mockserver.dashboard.model
Methods in org.mockserver.dashboard.model that return Expectation Modifier and Type Method Description Expectation
LogEntryDTO. getExpectation()
Methods in org.mockserver.dashboard.model with parameters of type Expectation Modifier and Type Method Description LogEntryDTO
LogEntryDTO. setExpectation(Expectation expectation)
-
Uses of Expectation in org.mockserver.log
Method parameters in org.mockserver.log with type arguments of type Expectation Modifier and Type Method Description void
MockServerEventLog. retrieveRecordedExpectations(HttpRequest httpRequest, Consumer<List<Expectation>> listConsumer)
-
Uses of Expectation in org.mockserver.log.model
Methods in org.mockserver.log.model that return Expectation Modifier and Type Method Description Expectation
ExpectationLogEntry. getExpectation()
Expectation
LogEntry. getExpectation()
Methods in org.mockserver.log.model with parameters of type Expectation Modifier and Type Method Description LogEntry
LogEntry. setExpectation(Expectation expectation)
-
Uses of Expectation in org.mockserver.matchers
Methods in org.mockserver.matchers that return Expectation Modifier and Type Method Description Expectation
HttpRequestMatcher. getExpectation()
Methods in org.mockserver.matchers with parameters of type Expectation Modifier and Type Method Description HttpRequestMatcher
MatcherBuilder. transformsToMatcher(Expectation expectation)
-
Uses of Expectation in org.mockserver.mock
Methods in org.mockserver.mock that return Expectation Modifier and Type Method Description Expectation
Expectation. clone()
Expectation
HttpStateHandler. firstMatchingExpectation(HttpRequest request)
Expectation
MockServerMatcher. firstMatchingExpectation(HttpRequest httpRequest)
Expectation
Expectation. thenError(HttpError httpError)
Expectation
Expectation. thenForward(HttpClassCallback httpClassCallback)
Expectation
Expectation. thenForward(HttpForward httpForward)
Expectation
Expectation. thenForward(HttpObjectCallback httpObjectCallback)
Expectation
Expectation. thenForward(HttpOverrideForwardedRequest httpOverrideForwardedRequest)
Expectation
Expectation. thenForward(HttpTemplate httpTemplate)
Expectation
Expectation. thenRespond(HttpClassCallback httpClassCallback)
Expectation
Expectation. thenRespond(HttpObjectCallback httpObjectCallback)
Expectation
Expectation. thenRespond(HttpResponse httpResponse)
Expectation
Expectation. thenRespond(HttpTemplate httpTemplate)
Methods in org.mockserver.mock that return types with arguments of type Expectation Modifier and Type Method Description List<Expectation>
MockServerMatcher. retrieveActiveExpectations(HttpRequest httpRequest)
Methods in org.mockserver.mock with parameters of type Expectation Modifier and Type Method Description void
HttpStateHandler. add(Expectation... expectations)
void
MockServerMatcher. add(Expectation expectation)
void
HttpStateHandler. postProcess(Expectation expectation)
-
Uses of Expectation in org.mockserver.persistence
Methods in org.mockserver.persistence with parameters of type Expectation Modifier and Type Method Description String
ExpectationFileSystemPersistence. serialize(Expectation... expectations)
Method parameters in org.mockserver.persistence with type arguments of type Expectation Modifier and Type Method Description String
ExpectationFileSystemPersistence. serialize(List<Expectation> expectations)
-
Uses of Expectation in org.mockserver.serialization
Methods in org.mockserver.serialization that return Expectation Modifier and Type Method Description Expectation
ExpectationSerializer. deserialize(String jsonExpectation)
Expectation[]
ExpectationSerializer. deserializeArray(String jsonExpectations)
Methods in org.mockserver.serialization that return types with arguments of type Expectation Modifier and Type Method Description Class<Expectation>
ExpectationSerializer. supportsType()
Methods in org.mockserver.serialization with parameters of type Expectation Modifier and Type Method Description String
ExpectationSerializer. serialize(Expectation expectation)
String
ExpectationSerializer. serialize(Expectation... expectations)
Method parameters in org.mockserver.serialization with type arguments of type Expectation Modifier and Type Method Description String
ExpectationSerializer. serialize(List<Expectation> expectations)
-
Uses of Expectation in org.mockserver.serialization.java
Methods in org.mockserver.serialization.java with parameters of type Expectation Modifier and Type Method Description String
ExpectationToJavaSerializer. serialize(int numberOfSpacesToIndent, Expectation expectation)
Method parameters in org.mockserver.serialization.java with type arguments of type Expectation Modifier and Type Method Description String
ExpectationToJavaSerializer. serialize(List<Expectation> expectations)
-
Uses of Expectation in org.mockserver.serialization.model
Methods in org.mockserver.serialization.model that return Expectation Modifier and Type Method Description Expectation
ExpectationDTO. buildObject()
Constructors in org.mockserver.serialization.model with parameters of type Expectation Constructor Description ExpectationDTO(Expectation expectation)
-
Uses of Expectation in org.mockserver.server.initialize
Methods in org.mockserver.server.initialize that return Expectation Modifier and Type Method Description Expectation[]
ExpectationInitializer. initializeExpectations()
Expectation[]
ExpectationInitializerLoader. loadExpectations()
-