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 voidMockServerClient. 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 ExpectationLogEntryDTO. getExpectation()Methods in org.mockserver.dashboard.model with parameters of type Expectation Modifier and Type Method Description LogEntryDTOLogEntryDTO. 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 voidMockServerEventLog. 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 ExpectationExpectationLogEntry. getExpectation()ExpectationLogEntry. getExpectation()Methods in org.mockserver.log.model with parameters of type Expectation Modifier and Type Method Description LogEntryLogEntry. setExpectation(Expectation expectation) -
Uses of Expectation in org.mockserver.matchers
Methods in org.mockserver.matchers that return Expectation Modifier and Type Method Description ExpectationHttpRequestMatcher. decrementRemainingMatches()ExpectationHttpRequestMatcher. getExpectation()Methods in org.mockserver.matchers with parameters of type Expectation Modifier and Type Method Description HttpRequestMatcherMatcherBuilder. transformsToMatcher(Expectation expectation)Constructors in org.mockserver.matchers with parameters of type Expectation Constructor Description HttpRequestMatcher(MockServerLogger mockServerLogger, Expectation expectation) -
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. retrieveActiveExpectations(HttpRequest httpRequest)Methods in org.mockserver.mock with parameters of type Expectation Modifier and Type Method Description voidHttpStateHandler. add(Expectation... expectations)voidMockServerMatcher. add(Expectation expectation) -
Uses of Expectation in org.mockserver.serialization
Methods in org.mockserver.serialization that return Expectation Modifier and Type Method Description ExpectationExpectationSerializer. 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 StringExpectationSerializer. serialize(Expectation expectation)StringExpectationSerializer. serialize(Expectation... expectations)Method parameters in org.mockserver.serialization with type arguments of type Expectation Modifier and Type Method Description StringExpectationSerializer. 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 StringExpectationToJavaSerializer. serialize(int numberOfSpacesToIndent, Expectation expectation)Method parameters in org.mockserver.serialization.java with type arguments of type Expectation Modifier and Type Method Description StringExpectationToJavaSerializer. 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 ExpectationExpectationDTO. 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()
-