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(org.mockserver.model.RequestDefinition requestDefinition) Specify an unlimited expectation that will respond regardless of the number of matching http for example:MockServerClient.when(org.mockserver.model.RequestDefinition requestDefinition, org.mockserver.matchers.Times times) Specify a limited expectation that will respond a specified number of times when the http is matchedMockServerClient.when(org.mockserver.model.RequestDefinition requestDefinition, org.mockserver.matchers.Times times, org.mockserver.matchers.TimeToLive timeToLive) Specify a limited expectation that will respond a specified number of times when the http is matchedMockServerClient.when(org.mockserver.model.RequestDefinition requestDefinition, org.mockserver.matchers.Times times, org.mockserver.matchers.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(org.mockserver.model.AfterAction afterAction) Set a single after-action to execute after the primary action completesForwardChainExpectation.withAfterActions(org.mockserver.model.AfterAction... afterActions) ForwardChainExpectation.withBeforeAction(org.mockserver.model.AfterAction beforeAction) Set a single before-action to execute before the primary action.ForwardChainExpectation.withBeforeActions(org.mockserver.model.AfterAction... beforeActions) ForwardChainExpectation.withChaos(org.mockserver.model.HttpChaosProfile chaos) Set a declarative HTTP chaos/fault injection profile for this expectation.ForwardChainExpectation.withCrossProtocolScenario(org.mockserver.model.CrossProtocolScenario crossProtocolScenario) Add a single cross-protocol scenario correlation to this expectation.ForwardChainExpectation.withCrossProtocolScenarios(List<org.mockserver.model.CrossProtocolScenario> crossProtocolScenarios) Set the list of cross-protocol scenario correlations for this expectation.ForwardChainExpectation.withHttpResponses(List<org.mockserver.model.HttpResponse> httpResponses) Set a list of responses for stateful / multi-response selection.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(org.mockserver.mock.ResponseMode responseMode) ForwardChainExpectation.withResponseWeights(List<Integer> responseWeights) Set the relative weight of each response inhttpResponses(index-aligned), used whenResponseMode.WEIGHTEDselection is active.ForwardChainExpectation.withScenarioName(String scenarioName) Set the scenario name for stateful expectation matchingForwardChainExpectation.withScenarioState(String scenarioState) Set an ordered list of steps for this expectation.ForwardChainExpectation.withSteps(org.mockserver.model.ExpectationStep... steps) Set an ordered list of steps for this expectation.ForwardChainExpectation.withSwitchAfter(Integer switchAfter) Set the number of matches served by each response before advancing to the next, used whenResponseMode.SWITCHselection is active (default 1).