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