-
public class PactDslWithProvider
-
-
Field Summary
Fields Modifier and Type Field Description private ConsumerPactBuilderconsumerPactBuilderprivate PactDslRequestWithoutPathdefaultRequestValuesprivate PactDslResponsedefaultResponseValues
-
Constructor Summary
Constructors Constructor Description PactDslWithProvider(ConsumerPactBuilder consumerPactBuilder, String provider)
-
Method Summary
Modifier and Type Method Description PactDslWithStategiven(String state)Describe the state the provider needs to be in for the pact test to be verified. PactDslWithStategiven(String state, Map<String, Object> params)Describe the state the provider needs to be in for the pact test to be verified. PactDslWithStategiven(String state, String firstKey, Object firstValue, Array<Object> paramsKeyValuePair)Describe the state the provider needs to be in for the pact test to be verified. PactDslRequestWithoutPathuponReceiving(String description)Description of the request that is expected to be received ConsumerPactBuildergetConsumerPactBuilder()voidsetDefaultRequestValues(PactDslRequestWithoutPath defaultRequestValues)voidsetDefaultResponseValues(PactDslResponse defaultResponseValues)-
-
Constructor Detail
-
PactDslWithProvider
PactDslWithProvider(ConsumerPactBuilder consumerPactBuilder, String provider)
-
-
Method Detail
-
given
PactDslWithState given(String state)
Describe the state the provider needs to be in for the pact test to be verified.
- Parameters:
state- Provider state
-
given
PactDslWithState given(String state, Map<String, Object> params)
Describe the state the provider needs to be in for the pact test to be verified.
- Parameters:
state- Provider stateparams- Data parameters for the state
-
given
PactDslWithState given(String state, String firstKey, Object firstValue, Array<Object> paramsKeyValuePair)
Describe the state the provider needs to be in for the pact test to be verified.
- Parameters:
firstKey- Key of first parameter elementfirstValue- Value of first parameter elementparamsKeyValuePair- Additional parameters in key-value pairs
-
uponReceiving
PactDslRequestWithoutPath uponReceiving(String description)
Description of the request that is expected to be received
- Parameters:
description- request description
-
getConsumerPactBuilder
ConsumerPactBuilder getConsumerPactBuilder()
-
setDefaultRequestValues
void setDefaultRequestValues(PactDslRequestWithoutPath defaultRequestValues)
-
setDefaultResponseValues
void setDefaultResponseValues(PactDslResponse defaultResponseValues)
-
-
-
-