public class RequestResponsePact
extends BasePact
Pact between a consumer and a provider
BasePact.Companion| Constructor and Description |
|---|
RequestResponsePact(Provider provider,
Consumer consumer,
java.util.List<au.com.dius.pact.core.model.RequestResponseInteraction> interactions,
java.util.Map<java.lang.String,? extends java.lang.Object> metadata,
PactSource source)
Pact between a consumer and a provider
|
RequestResponsePact(Provider provider,
Consumer consumer,
java.util.List<au.com.dius.pact.core.model.RequestResponseInteraction> interactions,
java.util.Map<java.lang.String,? extends java.lang.Object> metadata)
Pact between a consumer and a provider
|
RequestResponsePact(Provider provider,
Consumer consumer,
java.util.List<au.com.dius.pact.core.model.RequestResponseInteraction> interactions)
Pact between a consumer and a provider
|
RequestResponsePact(Provider provider,
Consumer consumer)
Pact between a consumer and a provider
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object other) |
Consumer |
getConsumer()
Returns the consumer of the service for the pact
|
java.util.List<au.com.dius.pact.core.model.RequestResponseInteraction> |
getInteractions()
Returns all the interactions of the pact
|
java.util.Map<java.lang.String,java.lang.Object> |
getMetadata() |
Provider |
getProvider()
Returns the provider of the service for the pact
|
PactSource |
getSource()
The source that this pact was loaded from
|
int |
hashCode() |
RequestResponseInteraction |
interactionFor(java.lang.String description,
java.lang.String providerState) |
void |
mergeInteractions(java.util.List<?> interactions)
Merges all the interactions into this Pact
|
void |
setInteractions(java.util.List<au.com.dius.pact.core.model.RequestResponseInteraction> p)
Returns all the interactions of the pact
|
Pact<au.com.dius.pact.core.model.RequestResponseInteraction> |
sortInteractions()
Returns a pact with the interactions sorted
|
java.util.Map<java.lang.String,java.lang.Object> |
toMap(PactSpecVersion pactSpecVersion)
Returns a Map representation of this pact for the purpose of generating a JSON document.
|
compatibleTo, equals, fileForPact, getConsumer, getMetadata, getProvider, getSource, hashCode, lookupVersion, metaData, toString, writecompatibleTo, getConsumer, getInteractions, getProvider, getSource, mergeInteractions, sortInteractions, toMappublic RequestResponsePact(Provider provider, Consumer consumer, java.util.List<au.com.dius.pact.core.model.RequestResponseInteraction> interactions, java.util.Map<java.lang.String,? extends java.lang.Object> metadata, PactSource source)
Pact between a consumer and a provider
provider - Returns the provider of the service for the pactconsumer - Returns the consumer of the service for the pactinteractions - Returns all the interactions of the pactsource - The source that this pact was loaded frompublic RequestResponsePact(Provider provider, Consumer consumer, java.util.List<au.com.dius.pact.core.model.RequestResponseInteraction> interactions, java.util.Map<java.lang.String,? extends java.lang.Object> metadata)
Pact between a consumer and a provider
provider - Returns the provider of the service for the pactconsumer - Returns the consumer of the service for the pactinteractions - Returns all the interactions of the pactpublic RequestResponsePact(Provider provider, Consumer consumer, java.util.List<au.com.dius.pact.core.model.RequestResponseInteraction> interactions)
Pact between a consumer and a provider
provider - Returns the provider of the service for the pactconsumer - Returns the consumer of the service for the pactinteractions - Returns all the interactions of the pactpublic Pact<au.com.dius.pact.core.model.RequestResponseInteraction> sortInteractions()
Returns a pact with the interactions sorted
public java.util.Map<java.lang.String,java.lang.Object> toMap(PactSpecVersion pactSpecVersion)
Returns a Map representation of this pact for the purpose of generating a JSON document.
public void mergeInteractions(java.util.List<?> interactions)
Merges all the interactions into this Pact
interactions - public RequestResponseInteraction interactionFor(java.lang.String description, java.lang.String providerState)
public boolean equals(java.lang.Object other)
public int hashCode()
public Provider getProvider()
Returns the provider of the service for the pact
public Consumer getConsumer()
Returns the consumer of the service for the pact
public java.util.List<au.com.dius.pact.core.model.RequestResponseInteraction> getInteractions()
Returns all the interactions of the pact
public void setInteractions(java.util.List<au.com.dius.pact.core.model.RequestResponseInteraction> p)
Returns all the interactions of the pact
p - Returns all the interactions of the pactpublic java.util.Map<java.lang.String,java.lang.Object> getMetadata()
public PactSource getSource()
The source that this pact was loaded from