Uses of Class
org.mockserver.client.ForwardChainExpectation
Packages that use ForwardChainExpectation
-
Uses of ForwardChainExpectation in org.mockserver.client
Methods in org.mockserver.client that return ForwardChainExpectationModifier and TypeMethodDescriptionMockServerClient.when(RequestDefinition requestDefinition) Specify an unlimited expectation that will respond regardless of the number of matching http for example:MockServerClient.when(RequestDefinition requestDefinition, Times times) Specify a limited expectation that will respond a specified number of times when the http is matchedMockServerClient.when(RequestDefinition requestDefinition, Times times, TimeToLive timeToLive) Specify a limited expectation that will respond a specified number of times when the http is matchedMockServerClient.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.withAfterAction(AfterAction afterAction) Set a single after-action to execute after the primary action completesForwardChainExpectation.withAfterActions(AfterAction... afterActions) ForwardChainExpectation.withBeforeAction(AfterAction beforeAction) Set a single before-action to execute before the primary action.ForwardChainExpectation.withBeforeActions(AfterAction... beforeActions) ForwardChainExpectation.withChaos(HttpChaosProfile chaos) Set a declarative HTTP chaos/fault injection profile for this expectation.Set id of this expectation which can be used to update this expectation later or for clearing or verifying by expectation id.ForwardChainExpectation.withNewScenarioState(String newScenarioState) ForwardChainExpectation.withPercentage(Integer percentage) Set percentage of requests this expectation should match (0-100).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.withResponseMode(ResponseMode responseMode) ForwardChainExpectation.withScenarioName(String scenarioName) Set the scenario name for stateful expectation matchingForwardChainExpectation.withScenarioState(String scenarioState) ForwardChainExpectation.withSteps(List<ExpectationStep> steps) Set an ordered list of steps for this expectation.ForwardChainExpectation.withSteps(ExpectationStep... steps) Set an ordered list of steps for this expectation.