ForwardChainExpectation |
MockServerClient.when(RequestDefinition requestDefinition) |
Specify an unlimited expectation that will respond regardless of the number of matching http
for example:
|
ForwardChainExpectation |
MockServerClient.when(RequestDefinition requestDefinition,
Times times) |
Specify a limited expectation that will respond a specified number of times when the http is matched
|
ForwardChainExpectation |
MockServerClient.when(RequestDefinition requestDefinition,
Times times,
TimeToLive timeToLive) |
Specify a limited expectation that will respond a specified number of times when the http is matched
|
ForwardChainExpectation |
MockServerClient.when(RequestDefinition requestDefinition,
Times times,
TimeToLive timeToLive,
Integer priority) |
Specify a limited expectation that will respond a specified number of times when the http is matched and will be matched according to priority as follows:
|
ForwardChainExpectation |
ForwardChainExpectation.withAfterAction(AfterAction afterAction) |
Set a single after-action to execute after the primary action completes
|
ForwardChainExpectation |
ForwardChainExpectation.withAfterActions(AfterAction... afterActions) |
|
ForwardChainExpectation |
ForwardChainExpectation.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.
|
ForwardChainExpectation |
ForwardChainExpectation.withNewScenarioState(String newScenarioState) |
|
ForwardChainExpectation |
ForwardChainExpectation.withPercentage(Integer percentage) |
Set percentage of requests this expectation should match (0-100).
|
ForwardChainExpectation |
ForwardChainExpectation.withPriority(int priority) |
Set priority of this expectation which is used to determine the matching
order of expectations when a request is received.
|
ForwardChainExpectation |
ForwardChainExpectation.withResponseMode(ResponseMode responseMode) |
|
ForwardChainExpectation |
ForwardChainExpectation.withScenarioName(String scenarioName) |
Set the scenario name for stateful expectation matching
|
ForwardChainExpectation |
ForwardChainExpectation.withScenarioState(String scenarioState) |
|