| Constructor and Description |
|---|
JsonSchemaBodyDecoder(Configuration configuration,
MockServerLogger mockServerLogger,
Expectation expectation,
HttpRequest httpRequest) |
| Modifier and Type | Method and Description |
|---|---|
void |
MockServerEventLog.retrieveRecordedExpectations(RequestDefinition requestDefinition,
Consumer<List<Expectation>> listConsumer) |
| Modifier and Type | Method and Description |
|---|---|
Expectation |
ExpectationLogEntry.getExpectation() |
Expectation |
LogEntry.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 |
HttpRequestMatcher.getExpectation() |
Expectation |
AbstractHttpRequestMatcher.getExpectation() |
| Modifier and Type | Method and Description |
|---|---|
HttpRequestMatcher |
MatcherBuilder.transformsToMatcher(Expectation expectation) |
boolean |
HttpRequestMatcher.update(Expectation expectation) |
boolean |
AbstractHttpRequestMatcher.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 determine 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 © 2023. All rights reserved.