public Target
Run Interaction and perform response verification
void testInteraction(@NotNull
java.lang.String consumerName,
@NotNull
au.com.dius.pact.core.model.Interaction interaction,
@NotNull
au.com.dius.pact.core.model.PactSource source,
@NotNull
java.util.Map<java.lang.String,? extends java.lang.Object> context)
Run Interaction and perform response verification
Any exception will be caught by caller and reported as test failure
consumerName - consumer name that generated the interactioninteraction - interaction to be testedsource - Source of the Pact interactioncontext - Context map for the testvoid addResultCallback(@NotNull
java.util.function.BiConsumer<au.com.dius.pact.provider.VerificationResult,au.com.dius.pact.provider.IProviderVerifier> callback)
Add a callback to receive the test interaction result
@NotNull Target withStateHandler(@NotNull org.apache.commons.lang3.tuple.Pair<java.lang.Class,java.util.function.Supplier> stateHandler)
Add an additional state change handler to look for state change callbacks
@NotNull Target withStateHandlers(@NotNull org.apache.commons.lang3.tuple.Pair... stateHandlers)
Add additional state change handlers to look for state change callbacks
void setStateHandlers(@NotNull
java.util.List<? extends org.apache.commons.lang3.tuple.Pair<java.lang.Class<? extends java.lang.Object>,java.util.function.Supplier<? extends java.lang.Object>>> stateHandlers)
Add additional state change handlers to look for state change callbacks
@NotNull java.util.List<org.apache.commons.lang3.tuple.Pair> getStateHandlers()
Additional state change handlers to look for state change callbacks
@NotNull java.lang.Class<?> getRequestClass()
void configureVerifier(@NotNull
au.com.dius.pact.core.model.PactSource source,
@NotNull
java.lang.String consumerName,
@NotNull
au.com.dius.pact.core.model.Interaction interaction)
@NotNull IProviderVerifier getVerifier()