Modifier and Type | Method and Description |
---|---|
Expectation[] |
MockServerClient.retrieveActiveExpectations(HttpRequest httpRequest)
Retrieve the active expectations match the httpRequest parameter, use null for the parameter to retrieve all expectations
|
Expectation[] |
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 requests
|
Modifier and Type | Method and Description |
---|---|
void |
MockServerClient.sendExpectation(Expectation... expectations)
Deprecated.
this is deprecated due to unclear naming, use method upsert(Expectation... expectations) instead
|
void |
MockServerClient.upsert(Expectation... expectations)
Specify one or more expectations to be create, or updated (if the id matches).
|
Modifier and Type | Method and Description |
---|---|
Expectation |
DashboardLogEntryDTO.getExpectation() |
Modifier and Type | Method and Description |
---|---|
DashboardLogEntryDTO |
DashboardLogEntryDTO.setExpectation(Expectation expectation) |
Modifier and Type | Method and Description |
---|---|
void |
MockServerEventLog.retrieveRecordedExpectations(HttpRequest httpRequest,
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 | Method and Description |
---|---|
Expectation |
HttpRequestMatcher.getExpectation() |
Modifier and Type | Method and Description |
---|---|
HttpRequestMatcher |
MatcherBuilder.transformsToMatcher(Expectation expectation) |
boolean |
HttpRequestMatcher.update(Expectation expectation) |
Modifier and Type | Field and Description |
---|---|
static Comparator<Expectation> |
Expectation.EXPECTATION_PRIORITY_COMPARATOR |
Modifier and Type | Method and Description |
---|---|
Expectation |
Expectation.clone() |
Expectation |
MockServerMatcher.firstMatchingExpectation(HttpRequest httpRequest) |
Expectation |
HttpStateHandler.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) |
static Expectation |
Expectation.when(HttpRequest httpRequest,
Integer priority) |
static Expectation |
Expectation.when(HttpRequest httpRequest,
Times times,
TimeToLive timeToLive) |
static Expectation |
Expectation.when(HttpRequest httpRequest,
Times times,
TimeToLive timeToLive,
Integer priority) |
Expectation |
Expectation.withCreated(long created) |
Expectation |
Expectation.withId(String key) |
Modifier and Type | Method and Description |
---|---|
List<Expectation> |
MockServerMatcher.retrieveActiveExpectations(HttpRequest httpRequest) |
Modifier and Type | Method and Description |
---|---|
void |
HttpStateHandler.add(Expectation... expectations) |
void |
MockServerMatcher.add(Expectation expectation,
MockServerMatcherNotifier.Cause cause) |
void |
HttpStateHandler.postProcess(Expectation expectation) |
void |
MockServerMatcher.update(Expectation[] expectations,
MockServerMatcherNotifier.Cause cause) |
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) |
Modifier and Type | Method and Description |
---|---|
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 |
---|---|
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() |
Copyright © 2020. All rights reserved.