public class RequestResponsePact
extends BasePact
Pact between a consumer and a provider
@JvmOverloads
public RequestResponsePact(@NotNull
Provider provider,
@NotNull
Consumer consumer,
@NotNull
java.util.List<au.com.dius.pact.core.model.RequestResponseInteraction> interactions,
@NotNull
java.util.Map<java.lang.String,? extends java.lang.Object> metadata,
@NotNull
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 from@JvmOverloads
public RequestResponsePact(@NotNull
Provider provider,
@NotNull
Consumer consumer,
@NotNull
java.util.List<au.com.dius.pact.core.model.RequestResponseInteraction> interactions,
@NotNull
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 pact@JvmOverloads
public RequestResponsePact(@NotNull
Provider provider,
@NotNull
Consumer consumer,
@NotNull
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 pact@NotNull public Pact<au.com.dius.pact.core.model.RequestResponseInteraction> sortInteractions()
Returns a pact with the interactions sorted
@NotNull
public java.util.Map<java.lang.String,java.lang.Object> toMap(@NotNull
PactSpecVersion pactSpecVersion)
Returns a Map representation of this pact for the purpose of generating a JSON document.
public void mergeInteractions(@NotNull
java.util.List<?> interactions)
Merges all the interactions into this Pact
interactions - @Nullable public RequestResponseInteraction interactionFor(@NotNull java.lang.String description, @NotNull java.lang.String providerState)
public boolean equals(@Nullable
java.lang.Object other)
public int hashCode()
@NotNull public Provider getProvider()
Returns the provider of the service for the pact
@NotNull public Consumer getConsumer()
Returns the consumer of the service for the pact
@NotNull public java.util.List<au.com.dius.pact.core.model.RequestResponseInteraction> getInteractions()
Returns all the interactions of the pact
public void setInteractions(@NotNull
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 pact@NotNull public java.util.Map<java.lang.String,java.lang.Object> getMetadata()
@NotNull public PactSource getSource()
The source that this pact was loaded from