public IProviderVerifier
Interface to the provider verifier
@NotNull java.util.List<au.com.dius.pact.provider.reporters.VerifierReporter> getReporters()
List of the all reporters to report the results of the verification to
void setReporters(@NotNull
java.util.List<? extends au.com.dius.pact.provider.reporters.VerifierReporter> p)
List of the all reporters to report the results of the verification to
@NotNull java.util.function.Function<java.lang.Object,java.lang.Boolean> getCheckBuildSpecificTask()
Callback to determine if something is a build specific task
void setCheckBuildSpecificTask(@NotNull
java.util.function.Function<java.lang.Object,java.lang.Boolean> p)
Callback to determine if something is a build specific task
@NotNull java.util.function.BiConsumer<java.lang.Object,au.com.dius.pact.core.model.ProviderState> getExecuteBuildSpecificTask()
Consumer SAM to execute the build specific task
void setExecuteBuildSpecificTask(@NotNull
java.util.function.BiConsumer<java.lang.Object,au.com.dius.pact.core.model.ProviderState> p)
Consumer SAM to execute the build specific task
@NotNull java.util.function.Function<java.lang.String,java.lang.Boolean> getProjectHasProperty()
Callback to determine is the project has a particular property
void setProjectHasProperty(@NotNull
java.util.function.Function<java.lang.String,java.lang.Boolean> p)
Callback to determine is the project has a particular property
@NotNull java.util.function.Function<java.lang.String,java.lang.String> getProjectGetProperty()
Callback to fetch a project property
void setProjectGetProperty(@NotNull
java.util.function.Function<java.lang.String,java.lang.String> p)
Callback to fetch a project property
@NotNull java.util.function.Function<java.lang.reflect.Method,java.lang.Object> getProviderMethodInstance()
Callback to return the instance for the provider method to invoke
void setProviderMethodInstance(@NotNull
java.util.function.Function<java.lang.reflect.Method,java.lang.Object> p)
Callback to return the instance for the provider method to invoke
@NotNull java.util.function.Supplier<java.util.List> getProjectClasspath()
Callback to return the project classpath to use for looking up methods
void setProjectClasspath(@NotNull
java.util.function.Supplier<java.util.List> p)
Callback to return the project classpath to use for looking up methods
@Nullable java.lang.Object getPactLoadFailureMessage()
Callback to display a pact load error
void setPactLoadFailureMessage(@Nullable
java.lang.Object p)
Callback to display a pact load error
@NotNull java.util.function.Supplier<java.lang.String> getProviderVersion()
Callback to get the provider version
void setProviderVersion(@NotNull
java.util.function.Supplier<java.lang.String> p)
Callback to get the provider version
@Nullable java.util.function.Supplier<java.lang.String> getProviderTag()
Callback to get the provider tag
void setProviderTag(@Nullable
java.util.function.Supplier<java.lang.String> p)
Callback to get the provider tag
@NotNull
java.util.Map<java.lang.String,java.lang.Object> verifyProvider(@NotNull
ProviderInfo provider)
Run the verification for the given provider and return an failures in a Map
void reportStateForInteraction(@NotNull
java.lang.String state,
@NotNull
IProviderInfo provider,
@NotNull
IConsumerInfo consumer,
boolean isSetup)
Reports the state of the interaction to all the registered reporters
void finaliseReports()
Finalise all the reports after verification is complete
void displayFailures(@NotNull
java.util.Map<java.lang.String,? extends java.lang.Object> failures)
Displays all the failures from the verification run
@NotNull
au.com.dius.pact.core.pactbroker.TestResult verifyResponseFromProvider(@NotNull
IProviderInfo provider,
@NotNull
au.com.dius.pact.core.model.RequestResponseInteraction interaction,
@NotNull
java.lang.String interactionMessage,
@NotNull
java.util.Map<java.lang.String,java.lang.Object> failures,
@NotNull
ProviderClient client)
Verifies the response from the provider against the interaction
@NotNull
au.com.dius.pact.core.pactbroker.TestResult verifyResponseFromProvider(@NotNull
IProviderInfo provider,
@NotNull
au.com.dius.pact.core.model.RequestResponseInteraction interaction,
@NotNull
java.lang.String interactionMessage,
@NotNull
java.util.Map<java.lang.String,java.lang.Object> failures,
@NotNull
ProviderClient client,
@NotNull
java.util.Map<java.lang.String,? extends java.lang.Object> context)
Verifies the response from the provider against the interaction
@NotNull
au.com.dius.pact.core.pactbroker.TestResult verifyResponseByInvokingProviderMethods(@NotNull
IProviderInfo providerInfo,
@NotNull
IConsumerInfo consumer,
@NotNull
au.com.dius.pact.core.model.Interaction interaction,
@NotNull
java.lang.String interactionMessage,
@NotNull
java.util.Map<java.lang.String,java.lang.Object> failures)
Verifies the interaction by invoking a method on a provider test class
@NotNull
au.com.dius.pact.core.pactbroker.TestResult verifyRequestResponsePact(@NotNull
au.com.dius.pact.core.model.Response expectedResponse,
@NotNull
java.util.Map<java.lang.String,? extends java.lang.Object> actualResponse,
@NotNull
java.lang.String interactionMessage,
@NotNull
java.util.Map<java.lang.String,java.lang.Object> failures,
@NotNull
java.lang.String interactionId)
Compares the expected and actual responses
boolean publishingResultsDisabled()
If publishing of verification results has been disabled
void reportInteractionDescription(@NotNull
au.com.dius.pact.core.model.Interaction interaction)
Display info about the interaction about to be verified