-
public class ConsumerPactBuilder
-
-
Field Summary
Fields Modifier and Type Field Description private StringconsumerNameprivate List<RequestResponseInteraction>interactions
-
Constructor Summary
Constructors Constructor Description ConsumerPactBuilder(String consumer)
-
Method Summary
Modifier and Type Method Description static ConsumerPactBuilderconsumer(String consumer)Name the consumer of the pact PactDslWithProviderhasPactWith(String provider)Name the provider that the consumer has a pact with static PactDslJsonBodyjsonBody()static StringxmlToString(Document body)StringgetConsumerName()Returns the name of the consumer List<RequestResponseInteraction>getInteractions()-
-
Constructor Detail
-
ConsumerPactBuilder
ConsumerPactBuilder(String consumer)
-
-
Method Detail
-
consumer
static ConsumerPactBuilder consumer(String consumer)
Name the consumer of the pact
- Parameters:
consumer- Consumer name
-
hasPactWith
PactDslWithProvider hasPactWith(String provider)
Name the provider that the consumer has a pact with
- Parameters:
provider- provider name
-
jsonBody
static PactDslJsonBody jsonBody()
-
xmlToString
static String xmlToString(Document body)
-
getConsumerName
String getConsumerName()
Returns the name of the consumer
-
getInteractions
List<RequestResponseInteraction> getInteractions()
-
-
-
-