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.filters
Methods in org.mockserver.filters that return types with arguments of type Expectation Modifier and Type Method Description List<Expectation>
MockServerEventLog. retrieveExpectations(HttpRequest httpRequest)
-
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
ExpectationMatchLogEntry. getExpectation()
Expectation
RequestResponseLogEntry. getExpectation()
Constructors in org.mockserver.log.model with parameters of type Expectation Constructor Description ExpectationMatchLogEntry(HttpRequest httpRequest, Expectation expectation)
-
Uses of Expectation in org.mockserver.matchers
Methods in org.mockserver.matchers that return Expectation Modifier and Type Method Description Expectation
HttpRequestMatcher. decrementRemainingMatches()
Expectation
HttpRequestMatcher. getExpectation()
Methods in org.mockserver.matchers with parameters of type Expectation Modifier and Type Method Description HttpRequestMatcher
MatcherBuilder. transformsToMatcher(Expectation expectation)
Constructors in org.mockserver.matchers with parameters of type Expectation Constructor Description HttpRequestMatcher(Expectation expectation, MockServerLogger mockServerLogger)
-
Uses of Expectation in org.mockserver.mock
Methods in org.mockserver.mock that return types with arguments of type Expectation Modifier and Type Method Description List<Expectation>
MockServerMatcher. retrieveExpectations(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)
-
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()
static Expectation[]
ExpectationInitializerLoader. loadExpectations()
-