public class PactVerificationContext
The instance that holds the context for the test of an interaction. The test target will need to be set on it in the before each phase of the test, and the verifyInteraction method must be called in the test template method.
@JvmOverloads
public PactVerificationContext(@NotNull
org.junit.jupiter.api.extension.ExtensionContext.Store store,
@NotNull
org.junit.jupiter.api.extension.ExtensionContext context,
@NotNull
TestTarget target,
@Nullable
au.com.dius.pact.provider.IProviderVerifier verifier,
@NotNull
au.com.dius.pact.core.support.expressions.ValueResolver valueResolver,
@NotNull
au.com.dius.pact.provider.IProviderInfo providerInfo,
@NotNull
au.com.dius.pact.provider.IConsumerInfo consumer,
@NotNull
au.com.dius.pact.core.model.Interaction interaction,
@NotNull
java.util.List<au.com.dius.pact.provider.VerificationResult.Failed> testExecutionResult)
The instance that holds the context for the test of an interaction. The test target will need to be set on it in the before each phase of the test, and the verifyInteraction method must be called in the test template method.
@JvmOverloads
public PactVerificationContext(@NotNull
org.junit.jupiter.api.extension.ExtensionContext.Store store,
@NotNull
org.junit.jupiter.api.extension.ExtensionContext context,
@NotNull
TestTarget target,
@Nullable
au.com.dius.pact.provider.IProviderVerifier verifier,
@NotNull
au.com.dius.pact.core.support.expressions.ValueResolver valueResolver,
@NotNull
au.com.dius.pact.provider.IProviderInfo providerInfo,
@NotNull
au.com.dius.pact.provider.IConsumerInfo consumer,
@NotNull
au.com.dius.pact.core.model.Interaction interaction)
The instance that holds the context for the test of an interaction. The test target will need to be set on it in the before each phase of the test, and the verifyInteraction method must be called in the test template method.
@JvmOverloads
public PactVerificationContext(@NotNull
org.junit.jupiter.api.extension.ExtensionContext.Store store,
@NotNull
org.junit.jupiter.api.extension.ExtensionContext context,
@NotNull
TestTarget target,
@Nullable
au.com.dius.pact.provider.IProviderVerifier verifier,
@NotNull
au.com.dius.pact.provider.IProviderInfo providerInfo,
@NotNull
au.com.dius.pact.provider.IConsumerInfo consumer,
@NotNull
au.com.dius.pact.core.model.Interaction interaction)
The instance that holds the context for the test of an interaction. The test target will need to be set on it in the before each phase of the test, and the verifyInteraction method must be called in the test template method.
@JvmOverloads
public PactVerificationContext(@NotNull
org.junit.jupiter.api.extension.ExtensionContext.Store store,
@NotNull
org.junit.jupiter.api.extension.ExtensionContext context,
@NotNull
TestTarget target,
@NotNull
au.com.dius.pact.provider.IProviderInfo providerInfo,
@NotNull
au.com.dius.pact.provider.IConsumerInfo consumer,
@NotNull
au.com.dius.pact.core.model.Interaction interaction)
The instance that holds the context for the test of an interaction. The test target will need to be set on it in the before each phase of the test, and the verifyInteraction method must be called in the test template method.
@JvmOverloads
public PactVerificationContext(@NotNull
org.junit.jupiter.api.extension.ExtensionContext.Store store,
@NotNull
org.junit.jupiter.api.extension.ExtensionContext context,
@NotNull
au.com.dius.pact.provider.IProviderInfo providerInfo,
@NotNull
au.com.dius.pact.provider.IConsumerInfo consumer,
@NotNull
au.com.dius.pact.core.model.Interaction interaction)
The instance that holds the context for the test of an interaction. The test target will need to be set on it in the before each phase of the test, and the verifyInteraction method must be called in the test template method.
@NotNull public java.util.List<java.lang.Object> getStateChangeHandlers()
@Nullable public java.util.Map<java.lang.String,java.lang.Object> getExecutionContext()
public void setExecutionContext(@Nullable
java.util.Map<java.lang.String,? extends java.lang.Object> p)
public void verifyInteraction()
Called to verify the interaction from the test template method.
AssertionError - Throws an assertion error if the verification fails.@NotNull public PactVerificationContext withStateChangeHandlers(@NotNull java.lang.Object... stateClasses)
public void addStateChangeHandlers(@NotNull
java.lang.Object... stateClasses)
@NotNull public TestTarget getTarget()
public void setTarget(@NotNull
TestTarget p)
@Nullable public au.com.dius.pact.provider.IProviderVerifier getVerifier()
public void setVerifier(@Nullable
au.com.dius.pact.provider.IProviderVerifier p)
@NotNull public au.com.dius.pact.core.support.expressions.ValueResolver getValueResolver()
public void setValueResolver(@NotNull
au.com.dius.pact.core.support.expressions.ValueResolver p)
@NotNull public au.com.dius.pact.provider.IProviderInfo getProviderInfo()
public void setProviderInfo(@NotNull
au.com.dius.pact.provider.IProviderInfo p)
@NotNull public au.com.dius.pact.provider.IConsumerInfo getConsumer()
@NotNull public au.com.dius.pact.core.model.Interaction getInteraction()
@NotNull public java.util.List<au.com.dius.pact.provider.VerificationResult.Failed> getTestExecutionResult()
public void setTestExecutionResult(@NotNull
java.util.List<au.com.dius.pact.provider.VerificationResult.Failed> p)
@NotNull public TestTarget component3()
@Nullable public au.com.dius.pact.provider.IProviderVerifier component4()
@NotNull public au.com.dius.pact.core.support.expressions.ValueResolver component5()
@NotNull public au.com.dius.pact.provider.IProviderInfo component6()
@NotNull public au.com.dius.pact.provider.IConsumerInfo component7()
@NotNull public au.com.dius.pact.core.model.Interaction component8()
@NotNull public java.util.List<au.com.dius.pact.provider.VerificationResult.Failed> component9()
@NotNull public PactVerificationContext copy(@NotNull org.junit.jupiter.api.extension.ExtensionContext.Store store, @NotNull org.junit.jupiter.api.extension.ExtensionContext context, @NotNull TestTarget target, @Nullable au.com.dius.pact.provider.IProviderVerifier verifier, @NotNull au.com.dius.pact.core.support.expressions.ValueResolver valueResolver, @NotNull au.com.dius.pact.provider.IProviderInfo providerInfo, @NotNull au.com.dius.pact.provider.IConsumerInfo consumer, @NotNull au.com.dius.pact.core.model.Interaction interaction, @NotNull java.util.List<au.com.dius.pact.provider.VerificationResult.Failed> testExecutionResult)
The instance that holds the context for the test of an interaction. The test target will need to be set on it in the before each phase of the test, and the verifyInteraction method must be called in the test template method.
@NotNull public java.lang.String toString()
The instance that holds the context for the test of an interaction. The test target will need to be set on it in the before each phase of the test, and the verifyInteraction method must be called in the test template method.
public int hashCode()
The instance that holds the context for the test of an interaction. The test target will need to be set on it in the before each phase of the test, and the verifyInteraction method must be called in the test template method.
public boolean equals(@Nullable
java.lang.Object p)
The instance that holds the context for the test of an interaction. The test target will need to be set on it in the before each phase of the test, and the verifyInteraction method must be called in the test template method.