-
public class PactDslWithState
-
-
Field Summary
Fields Modifier and Type Field Description public List<ProviderState>stateprivate final List<String>commentsprivate StringconsumerNameprivate StringproviderNameprivate final PactSpecVersionversion
-
Constructor Summary
Constructors Constructor Description PactDslWithState(ConsumerPactBuilder consumerPactBuilder, String consumerName, String providerName, PactDslRequestWithoutPath defaultRequestValues, PactDslResponse defaultResponseValues, PactSpecVersion version, Map<String, JsonValue> additionalMetadata)PactDslWithState(ConsumerPactBuilder consumerPactBuilder, String consumerName, String providerName, PactDslRequestWithoutPath defaultRequestValues, PactDslResponse defaultResponseValues, PactSpecVersion version)PactDslWithState(ConsumerPactBuilder consumerPactBuilder, String consumerName, String providerName, PactDslRequestWithoutPath defaultRequestValues, PactDslResponse defaultResponseValues)
-
Method Summary
Modifier and Type Method Description final List<String>getComments()final StringgetConsumerName()final UnitsetConsumerName(String consumerName)final StringgetProviderName()final UnitsetProviderName(String providerName)final PactSpecVersiongetVersion()final PactDslRequestWithoutPathuponReceiving(String description)Description of the request that is expected to be received final PactDslWithStategiven(String stateDesc)Adds another provider state to this interaction final PactDslWithStategiven(String stateDesc, Map<String, Object> params)Adds another provider state to this interaction final PactDslWithStatecomment(String comment)Adds a comment to this interaction final PactDslWithStateaddMetadataValue(String key, String value)Adds additional values to the metadata section of the Pact file final PactDslWithStateaddMetadataValue(String key, JsonValue value)Adds additional values to the metadata section of the Pact file -
-
Constructor Detail
-
PactDslWithState
PactDslWithState(ConsumerPactBuilder consumerPactBuilder, String consumerName, String providerName, PactDslRequestWithoutPath defaultRequestValues, PactDslResponse defaultResponseValues, PactSpecVersion version, Map<String, JsonValue> additionalMetadata)
-
PactDslWithState
PactDslWithState(ConsumerPactBuilder consumerPactBuilder, String consumerName, String providerName, PactDslRequestWithoutPath defaultRequestValues, PactDslResponse defaultResponseValues, PactSpecVersion version)
-
PactDslWithState
PactDslWithState(ConsumerPactBuilder consumerPactBuilder, String consumerName, String providerName, PactDslRequestWithoutPath defaultRequestValues, PactDslResponse defaultResponseValues)
-
-
Method Detail
-
getComments
final List<String> getComments()
-
getConsumerName
final String getConsumerName()
-
setConsumerName
final Unit setConsumerName(String consumerName)
-
getProviderName
final String getProviderName()
-
setProviderName
final Unit setProviderName(String providerName)
-
getVersion
final PactSpecVersion getVersion()
-
uponReceiving
final PactDslRequestWithoutPath uponReceiving(String description)
Description of the request that is expected to be received
- Parameters:
description- request description
-
given
final PactDslWithState given(String stateDesc)
Adds another provider state to this interaction
- Parameters:
stateDesc- Description of the state
-
given
final PactDslWithState given(String stateDesc, Map<String, Object> params)
Adds another provider state to this interaction
- Parameters:
stateDesc- Description of the stateparams- State data parameters
-
comment
final PactDslWithState comment(String comment)
Adds a comment to this interaction
-
addMetadataValue
final PactDslWithState addMetadataValue(String key, String value)
Adds additional values to the metadata section of the Pact file
-
addMetadataValue
final PactDslWithState addMetadataValue(String key, JsonValue value)
Adds additional values to the metadata section of the Pact file
-
-
-
-