-
public class PactDslWithState
-
-
Field Summary
Fields Modifier and Type Field Description List<ProviderState>stateStringconsumerNameStringproviderName
-
Constructor Summary
Constructors Constructor Description PactDslWithState(ConsumerPactBuilder consumerPactBuilder, String consumerName, String providerName, ProviderState state, PactDslRequestWithoutPath defaultRequestValues, PactDslResponse defaultResponseValues)PactDslWithState(ConsumerPactBuilder consumerPactBuilder, String consumerName, String providerName, PactDslRequestWithoutPath defaultRequestValues, PactDslResponse defaultResponseValues)
-
Method Summary
Modifier and Type Method Description PactDslRequestWithoutPathuponReceiving(String description)Description of the request that is expected to be received PactDslWithStategiven(String stateDesc)Adds another provider state to this interaction PactDslWithStategiven(String stateDesc, Map<String, Object> params)Adds another provider state to this interaction -
-
Constructor Detail
-
PactDslWithState
PactDslWithState(ConsumerPactBuilder consumerPactBuilder, String consumerName, String providerName, ProviderState state, PactDslRequestWithoutPath defaultRequestValues, PactDslResponse defaultResponseValues)
-
PactDslWithState
PactDslWithState(ConsumerPactBuilder consumerPactBuilder, String consumerName, String providerName, PactDslRequestWithoutPath defaultRequestValues, PactDslResponse defaultResponseValues)
-
-
Method Detail
-
uponReceiving
PactDslRequestWithoutPath uponReceiving(String description)
Description of the request that is expected to be received
- Parameters:
description- request description
-
given
PactDslWithState given(String stateDesc)
Adds another provider state to this interaction
- Parameters:
stateDesc- Description of the state
-
-
-
-