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
@Nullable java.util.function.Supplier<java.lang.ClassLoader> getProjectClassLoader()
Callback to return the project classloader to use for looking up methods
void setProjectClassLoader(@Nullable
java.util.function.Supplier<java.lang.ClassLoader> p)
Callback to return the project classloader to use for looking up methods
@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
@Nullable java.util.function.Supplier<java.lang.String> getProviderBranch()
Callback to get the provider branch
void setProviderBranch(@Nullable
java.util.function.Supplier<java.lang.String> p)
Callback to get the provider branch
@Nullable java.util.function.Supplier<java.util.List> getProviderTags()
Callback to get the provider tags
void setProviderTags(@Nullable
java.util.function.Supplier<java.util.List> p)
Callback to get the provider tags
@Nullable java.util.function.Function<java.lang.String,java.lang.Object> getResponseFactory()
Callback which is given an interaction description and returns a response
void setResponseFactory(@Nullable
java.util.function.Function<java.lang.String,java.lang.Object> p)
Callback which is given an interaction description and returns a response
@NotNull
java.util.List<au.com.dius.pact.provider.VerificationResult> verifyProvider(@NotNull
IProviderInfo provider)
Run the verification for the given provider and return any failures
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.List<au.com.dius.pact.provider.VerificationResult.Failed> failures)
Displays all the failures from the verification run
@NotNull VerificationResult 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 VerificationResult 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, boolean pending)
Verifies the response from the provider against the interaction
@NotNull VerificationResult 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 VerificationResult verifyResponseByFactory(@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, boolean pending)
@NotNull VerificationResult verifyRequestResponsePact(@NotNull au.com.dius.pact.core.model.Response expectedResponse, @NotNull ProviderResponse actualResponse, @NotNull java.lang.String interactionMessage, @NotNull java.util.Map<java.lang.String,java.lang.Object> failures, @NotNull java.lang.String interactionId, boolean pending)
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
@NotNull
java.lang.String generateErrorStringFromVerificationResult(@NotNull
java.util.List<au.com.dius.pact.provider.VerificationResult.Failed> result)
void reportStateChangeFailed(@NotNull
au.com.dius.pact.core.model.ProviderState providerState,
@NotNull
java.lang.Exception error,
boolean isSetup)
void initialiseReporters(@NotNull
IProviderInfo provider)
void reportVerificationForConsumer(@NotNull
IConsumerInfo consumer,
@NotNull
IProviderInfo provider,
@Nullable
au.com.dius.pact.core.model.PactSource pactSource)
@Nullable java.lang.String getVerificationSource()
Source of the verification (Gradle/Maven/Junit)
void setVerificationSource(@Nullable
java.lang.String p)
Source of the verification (Gradle/Maven/Junit)