public class RequestResponseInteraction implements Interaction
Interaction between a consumer and a provider
| Modifier and Type | Class and Description |
|---|---|
static class |
RequestResponseInteraction.Companion |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
COMMA |
static RequestResponseInteraction.Companion |
Companion |
| Constructor and Description |
|---|
RequestResponseInteraction(java.lang.String description,
java.util.List<au.com.dius.pact.core.model.ProviderState> providerStates,
Request request,
Response response,
java.lang.String interactionId)
Interaction between a consumer and a provider
|
RequestResponseInteraction(java.lang.String description,
java.util.List<au.com.dius.pact.core.model.ProviderState> providerStates,
Request request,
Response response)
Interaction between a consumer and a provider
|
RequestResponseInteraction(java.lang.String description,
java.util.List<au.com.dius.pact.core.model.ProviderState> providerStates,
Request request)
Interaction between a consumer and a provider
|
RequestResponseInteraction(java.lang.String description,
java.util.List<au.com.dius.pact.core.model.ProviderState> providerStates)
Interaction between a consumer and a provider
|
RequestResponseInteraction(java.lang.String description)
Interaction between a consumer and a provider
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
conflictsWith(Interaction other)
Checks if this interaction conflicts with the other one. Used for merging pact files.
|
java.lang.String |
displayState() |
boolean |
equals(java.lang.Object other) |
java.lang.String |
getDescription()
Interaction description
|
java.lang.String |
getInteractionId()
Interaction ID.
|
java.util.List<au.com.dius.pact.core.model.ProviderState> |
getProviderStates()
Returns the provider states for this interaction
|
Request |
getRequest() |
Response |
getResponse() |
int |
hashCode() |
java.util.Map<java.lang.String,java.lang.Object> |
toMap(PactSpecVersion pactSpecVersion)
Converts this interaction to a Map
|
java.lang.String |
toString() |
java.lang.String |
uniqueKey()
Generates a unique key for this interaction
|
conflictsWith, getDescription, getInteractionId, getProviderStates, toMap, uniqueKeypublic static java.lang.String COMMA
public static RequestResponseInteraction.Companion Companion
public RequestResponseInteraction(java.lang.String description,
java.util.List<au.com.dius.pact.core.model.ProviderState> providerStates,
Request request,
Response response,
java.lang.String interactionId)
Interaction between a consumer and a provider
description - Interaction descriptionproviderStates - Returns the provider states for this interactioninteractionId - Interaction ID. Will only be populated from pacts loaded from a Pact Brokerpublic RequestResponseInteraction(java.lang.String description,
java.util.List<au.com.dius.pact.core.model.ProviderState> providerStates,
Request request,
Response response)
Interaction between a consumer and a provider
description - Interaction descriptionproviderStates - Returns the provider states for this interactionpublic RequestResponseInteraction(java.lang.String description,
java.util.List<au.com.dius.pact.core.model.ProviderState> providerStates,
Request request)
Interaction between a consumer and a provider
description - Interaction descriptionproviderStates - Returns the provider states for this interactionpublic RequestResponseInteraction(java.lang.String description,
java.util.List<au.com.dius.pact.core.model.ProviderState> providerStates)
Interaction between a consumer and a provider
description - Interaction descriptionproviderStates - Returns the provider states for this interactionpublic RequestResponseInteraction(java.lang.String description)
Interaction between a consumer and a provider
description - Interaction descriptionpublic java.lang.String toString()
public java.lang.String displayState()
public boolean conflictsWith(Interaction other)
Checks if this interaction conflicts with the other one. Used for merging pact files.
public java.lang.String uniqueKey()
Generates a unique key for this interaction
public java.util.Map<java.lang.String,java.lang.Object> toMap(PactSpecVersion pactSpecVersion)
Converts this interaction to a Map
public boolean equals(java.lang.Object other)
public int hashCode()
public java.lang.String getDescription()
Interaction description
public java.util.List<au.com.dius.pact.core.model.ProviderState> getProviderStates()
Returns the provider states for this interaction
public Request getRequest()
public Response getResponse()
public java.lang.String getInteractionId()
Interaction ID.
Will only be populated from pacts loaded from a Pact Broker