Interface to a pact
| Type | Name and description |
|---|---|
boolean |
compatibleTo(Pact other)If this pact is compatible with the other pact. |
Consumer |
getConsumer()Returns the consumer of the service for the pact |
java.util.List<Interaction> |
getInteractions()Returns all the interactions of the pact |
Provider |
getProvider()Returns the provider of the service for the pact |
void |
mergeInteractions(java.util.List<Interaction> interactions)Merges all the interactions into this Pact |
Pact |
sortInteractions()Returns a pact with the interactions sorted |
java.util.Map |
toMap(PactSpecVersion pactSpecVersion)Returns a Map representation of this pact for the purpose of generating a JSON document. |
If this pact is compatible with the other pact. Pacts are compatible if they have the same provider and they are the same type
Returns the consumer of the service for the pact
Returns all the interactions of the pact
Returns the provider of the service for the pact
Merges all the interactions into this Pact
Returns a pact with the interactions sorted
Returns a Map representation of this pact for the purpose of generating a JSON document.