| Modifier and Type | Method and Description | 
|---|---|
Expectation[] | 
ForwardChainExpectation.error(HttpError httpError)
Return error when expectation is matched 
 | 
Expectation[] | 
ForwardChainExpectation.forward(ExpectationForwardCallback expectationForwardCallback)
Call method on object locally or remotely (over web socket)
 to generate request to forward when expectation is matched 
 | 
Expectation[] | 
ForwardChainExpectation.forward(ExpectationForwardCallback expectationForwardCallback,
       Delay delay)
Call method on object locally or remotely (over web socket)
 to generate request to forward when expectation is matched 
 | 
Expectation[] | 
ForwardChainExpectation.forward(ExpectationForwardCallback expectationForwardCallback,
       ExpectationForwardAndResponseCallback expectationForwardResponseCallback)
Call method on object locally or remotely (over web socket)
 to generate request to forward when expectation is matched 
 | 
Expectation[] | 
ForwardChainExpectation.forward(ExpectationForwardCallback expectationForwardCallback,
       ExpectationForwardAndResponseCallback expectationForwardResponseCallback,
       Delay delay)
Call method on object locally or remotely (over web socket)
 to generate request to forward when expectation is matched 
 | 
Expectation[] | 
ForwardChainExpectation.forward(HttpClassCallback httpClassCallback)
Call method on local class in same JVM implementing ExpectationResponseCallback
 to generate request to forward when expectation is matched 
 | 
Expectation[] | 
ForwardChainExpectation.forward(HttpForward httpForward)
Forward request to the specified host and port when expectation is matched 
 | 
Expectation[] | 
ForwardChainExpectation.forward(HttpOverrideForwardedRequest httpOverrideForwardedRequest)
Override fields, headers, and cookies etc in request being forwarded with
 specified fields, headers and cookies, etc in the specified request
 when expectation is matched 
 | 
Expectation[] | 
ForwardChainExpectation.forward(HttpTemplate httpTemplate)
Evaluate Velocity or JavaScript template to generate
 request to forward when expectation is matched 
 | 
Expectation[] | 
ForwardChainExpectation.respond(ExpectationResponseCallback expectationResponseCallback)
Call method on object locally or remotely (over web socket)
 to generate response to return when expectation is matched 
 | 
Expectation[] | 
ForwardChainExpectation.respond(ExpectationResponseCallback expectationResponseCallback,
       Delay delay)
Call method on object locally or remotely (over web socket)
 to generate response to return when expectation is matched 
 | 
Expectation[] | 
ForwardChainExpectation.respond(HttpClassCallback httpClassCallback)
Call method on local class in same JVM implementing ExpectationResponseCallback
 to generate response to return when expectation is matched 
 | 
Expectation[] | 
ForwardChainExpectation.respond(HttpResponse httpResponse)
Return response when expectation is matched 
 | 
Expectation[] | 
ForwardChainExpectation.respond(HttpTemplate httpTemplate)
Evaluate Velocity or JavaScript template to generate response
 to return when expectation is matched 
 | 
Expectation[] | 
MockServerClient.retrieveActiveExpectations(RequestDefinition requestDefinition)
Retrieve the active expectations match the httpRequest parameter, use null for the parameter to retrieve all expectations 
 | 
Expectation[] | 
MockServerClient.retrieveRecordedExpectations(RequestDefinition requestDefinition)
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 requests 
 | 
Expectation[] | 
MockServerClient.sendExpectation(Expectation... expectations)
Deprecated. 
 
this is deprecated due to unclear naming, use method upsert(Expectation... expectations) instead 
 | 
Expectation[] | 
MockServerClient.upsert(Expectation... expectations)
Specify one or more expectations to be create, or updated (if the id matches). 
 | 
Expectation[] | 
MockServerClient.upsert(OpenAPIExpectation... openAPIExpectations)
Specify OpenAPI and operations and responses to create matchers and example responses 
 | 
| Modifier and Type | Method and Description | 
|---|---|
Expectation[] | 
MockServerClient.sendExpectation(Expectation... expectations)
Deprecated. 
 
this is deprecated due to unclear naming, use method upsert(Expectation... expectations) instead 
 | 
Expectation[] | 
MockServerClient.upsert(Expectation... expectations)
Specify one or more expectations to be create, or updated (if the id matches). 
 | 
| Constructor and Description | 
|---|
JsonSchemaBodyDecoder(Configuration configuration,
                     MockServerLogger mockServerLogger,
                     Expectation expectation,
                     HttpRequest httpRequest)  | 
| Modifier and Type | Method and Description | 
|---|---|
Expectation[] | 
ExpectationInitializerExample.initializeExpectations()  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
ExpectationsListener.updated(List<Expectation> expectations)  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
MockServerEventLog.retrieveRecordedExpectations(RequestDefinition requestDefinition,
                            Consumer<List<Expectation>> listConsumer)  | 
| Modifier and Type | Method and Description | 
|---|---|
Expectation | 
LogEntry.getExpectation()  | 
Expectation | 
ExpectationLogEntry.getExpectation()  | 
| Modifier and Type | Method and Description | 
|---|---|
LogEntry | 
LogEntry.setExpectation(Expectation expectation)  | 
| Modifier and Type | Field and Description | 
|---|---|
protected Expectation | 
AbstractHttpRequestMatcher.expectation  | 
| Modifier and Type | Method and Description | 
|---|---|
Expectation | 
AbstractHttpRequestMatcher.getExpectation()  | 
Expectation | 
HttpRequestMatcher.getExpectation()  | 
| Modifier and Type | Method and Description | 
|---|---|
HttpRequestMatcher | 
MatcherBuilder.transformsToMatcher(Expectation expectation)  | 
boolean | 
AbstractHttpRequestMatcher.update(Expectation expectation)  | 
boolean | 
HttpRequestMatcher.update(Expectation expectation)  | 
| Modifier and Type | Method and Description | 
|---|---|
Expectation | 
RequestMatchers.add(Expectation expectation,
   MockServerMatcherNotifier.Cause cause)  | 
Expectation | 
Expectation.clone()  | 
Expectation | 
RequestMatchers.firstMatchingExpectation(HttpRequest httpRequest)  | 
Expectation | 
HttpState.firstMatchingExpectation(HttpRequest request)  | 
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)  | 
static Expectation | 
Expectation.when(HttpRequest httpRequest)
Specify the HttpRequest to match against as follows: 
 | 
static Expectation | 
Expectation.when(HttpRequest httpRequest,
    int priority)
Specify the HttpRequest to match against with a match priority as follows: 
 | 
static Expectation | 
Expectation.when(HttpRequest httpRequest,
    Times times,
    TimeToLive timeToLive)
Specify the HttpRequest to match against for a limit number of times or time as follows: 
 | 
static Expectation | 
Expectation.when(HttpRequest httpRequest,
    Times times,
    TimeToLive timeToLive,
    int priority)
Specify the HttpRequest to match against for a limit number of times or time and a match priority as follows: 
 | 
static Expectation | 
Expectation.when(String specUrlOrPayload,
    String operationId)
Specify the OpenAPI and operationId to match against by URL or payload and string as follows: 
 | 
static Expectation | 
Expectation.when(String specUrlOrPayload,
    String operationId,
    int priority)
Specify the OpenAPI and operationId to match against by URL or payload and string with a match priority as follows: 
 | 
static Expectation | 
Expectation.when(String specUrlOrPayload,
    String operationId,
    Times times,
    TimeToLive timeToLive)
Specify the OpenAPI and operationId to match against by URL or payload and string for a limit number of times or time as follows: 
 | 
static Expectation | 
Expectation.when(String specUrlOrPayload,
    String operationId,
    Times times,
    TimeToLive timeToLive,
    int priority)
Specify the OpenAPI and operationId to match against by URL or payload and string for a limit number of times or time and a match priority as follows: 
 | 
Expectation | 
Expectation.withCreated(long created)  | 
Expectation | 
Expectation.withId(String id)
 Set id of this expectation which can be used to update this expectation
 later or for clearing or verifying by expectation id. 
 | 
Expectation | 
Expectation.withIdIfNull(String id)  | 
Expectation | 
Expectation.withPriority(int priority)
 Set priority of this expectation which is used to determin the matching
 order of expectations when a request is received. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
List<Expectation> | 
HttpState.add(Expectation... expectations)  | 
List<Expectation> | 
HttpState.add(OpenAPIExpectation openAPIExpectation)  | 
List<Expectation> | 
HttpState.allMatchingExpectation(HttpRequest request)  | 
List<Expectation> | 
RequestMatchers.retrieveActiveExpectations(RequestDefinition requestDefinition)  | 
| Modifier and Type | Method and Description | 
|---|---|
List<Expectation> | 
HttpState.add(Expectation... expectations)  | 
Expectation | 
RequestMatchers.add(Expectation expectation,
   MockServerMatcherNotifier.Cause cause)  | 
void | 
HttpState.postProcess(Expectation expectation)  | 
void | 
RequestMatchers.update(Expectation[] expectations,
      MockServerMatcherNotifier.Cause cause)  | 
| Modifier and Type | Method and Description | 
|---|---|
List<Expectation> | 
OpenAPIConverter.buildExpectations(String specUrlOrPayload,
                 Map<String,String> operationsAndResponses)  | 
| Modifier and Type | Method and Description | 
|---|---|
String | 
ExpectationFileSystemPersistence.serialize(Expectation... expectations)  | 
| Modifier and Type | Method and Description | 
|---|---|
String | 
ExpectationFileSystemPersistence.serialize(List<Expectation> expectations)  | 
| Modifier and Type | Method and Description | 
|---|---|
Expectation | 
ExpectationSerializer.deserialize(String jsonExpectation)  | 
Expectation[] | 
ExpectationSerializer.deserializeArray(String jsonExpectations,
                boolean allowEmpty)  | 
Expectation[] | 
ExpectationSerializer.deserializeArray(String jsonExpectations,
                boolean allowEmpty,
                BiFunction<String,List<Expectation>,List<Expectation>> expectationModifier)  | 
| Modifier and Type | Method and Description | 
|---|---|
List<Expectation> | 
OpenAPIExpectationSerializer.deserializeToExpectations(String jsonOpenAPIExpectation)  | 
Class<Expectation> | 
ExpectationSerializer.supportsType()  | 
| Modifier and Type | Method and Description | 
|---|---|
String | 
ExpectationSerializer.serialize(Expectation... expectations)  | 
String | 
ExpectationSerializer.serialize(Expectation expectation)  | 
| Modifier and Type | Method and Description | 
|---|---|
Expectation[] | 
ExpectationSerializer.deserializeArray(String jsonExpectations,
                boolean allowEmpty,
                BiFunction<String,List<Expectation>,List<Expectation>> expectationModifier)  | 
Expectation[] | 
ExpectationSerializer.deserializeArray(String jsonExpectations,
                boolean allowEmpty,
                BiFunction<String,List<Expectation>,List<Expectation>> expectationModifier)  | 
String | 
ExpectationSerializer.serialize(List<Expectation> expectations)  | 
| Modifier and Type | Method and Description | 
|---|---|
String | 
ExpectationToJavaSerializer.serialize(int numberOfSpacesToIndent,
         Expectation expectation)  | 
| Modifier and Type | Method and Description | 
|---|---|
String | 
ExpectationToJavaSerializer.serialize(List<Expectation> expectations)  | 
| Modifier and Type | Method and Description | 
|---|---|
Expectation | 
ExpectationDTO.buildObject()  | 
| Constructor and Description | 
|---|
ExpectationDTO(Expectation expectation)  | 
| Modifier and Type | Method and Description | 
|---|---|
Expectation[] | 
ExpectationInitializer.initializeExpectations()  | 
Expectation[] | 
ExpectationInitializerLoader.loadExpectations()  | 
| Modifier and Type | Method and Description | 
|---|---|
List<Expectation> | 
ExpectationInitializerLoader.retrieveExpectationsFromFile(String initialLogMessage,
                            String expectationLogMessage,
                            String completedLogMessage,
                            MockServerMatcherNotifier.Cause.Type causeType)  | 
Copyright © 2022. All rights reserved.