public class ProviderVerifier implements IProviderVerifier
Verifies the providers against the defined consumers in the context of a build plugin
| Modifier and Type | Class and Description |
|---|---|
static class |
ProviderVerifier.Companion |
| Modifier and Type | Field and Description |
|---|---|
static ProviderVerifier.Companion |
Companion |
static java.lang.String |
PACT_FILTER_CONSUMERS |
static java.lang.String |
PACT_FILTER_DESCRIPTION |
static java.lang.String |
PACT_FILTER_PROVIDERSTATE |
static java.lang.String |
PACT_PROVIDER_TAG |
static java.lang.String |
PACT_PROVIDER_VERSION |
static java.lang.String |
PACT_PROVIDER_VERSION_TRIM_SNAPSHOT |
static java.lang.String |
PACT_SHOW_FULLDIFF |
static java.lang.String |
PACT_SHOW_STACKTRACE |
static java.lang.String |
PACT_VERIFIER_PUBLISH_RESULTS |
| Constructor and Description |
|---|
ProviderVerifier(java.lang.Object pactLoadFailureMessage,
java.util.function.Function<java.lang.Object,java.lang.Boolean> checkBuildSpecificTask,
java.util.function.BiConsumer<java.lang.Object,au.com.dius.pact.core.model.ProviderState> executeBuildSpecificTask,
java.util.function.Supplier<java.util.List> projectClasspath,
java.util.List<? extends au.com.dius.pact.provider.reporters.VerifierReporter> reporters,
java.util.function.Function<java.lang.reflect.Method,java.lang.Object> providerMethodInstance,
java.util.function.Supplier<java.lang.String> providerVersion,
java.util.function.Supplier<java.lang.String> providerTag)
Verifies the providers against the defined consumers in the context of a build plugin
|
ProviderVerifier(java.lang.Object pactLoadFailureMessage,
java.util.function.Function<java.lang.Object,java.lang.Boolean> checkBuildSpecificTask,
java.util.function.BiConsumer<java.lang.Object,au.com.dius.pact.core.model.ProviderState> executeBuildSpecificTask,
java.util.function.Supplier<java.util.List> projectClasspath,
java.util.List<? extends au.com.dius.pact.provider.reporters.VerifierReporter> reporters,
java.util.function.Function<java.lang.reflect.Method,java.lang.Object> providerMethodInstance,
java.util.function.Supplier<java.lang.String> providerVersion)
Verifies the providers against the defined consumers in the context of a build plugin
|
ProviderVerifier(java.lang.Object pactLoadFailureMessage,
java.util.function.Function<java.lang.Object,java.lang.Boolean> checkBuildSpecificTask,
java.util.function.BiConsumer<java.lang.Object,au.com.dius.pact.core.model.ProviderState> executeBuildSpecificTask,
java.util.function.Supplier<java.util.List> projectClasspath,
java.util.List<? extends au.com.dius.pact.provider.reporters.VerifierReporter> reporters,
java.util.function.Function<java.lang.reflect.Method,java.lang.Object> providerMethodInstance)
Verifies the providers against the defined consumers in the context of a build plugin
|
ProviderVerifier(java.lang.Object pactLoadFailureMessage,
java.util.function.Function<java.lang.Object,java.lang.Boolean> checkBuildSpecificTask,
java.util.function.BiConsumer<java.lang.Object,au.com.dius.pact.core.model.ProviderState> executeBuildSpecificTask,
java.util.function.Supplier<java.util.List> projectClasspath,
java.util.List<? extends au.com.dius.pact.provider.reporters.VerifierReporter> reporters)
Verifies the providers against the defined consumers in the context of a build plugin
|
ProviderVerifier(java.lang.Object pactLoadFailureMessage,
java.util.function.Function<java.lang.Object,java.lang.Boolean> checkBuildSpecificTask,
java.util.function.BiConsumer<java.lang.Object,au.com.dius.pact.core.model.ProviderState> executeBuildSpecificTask,
java.util.function.Supplier<java.util.List> projectClasspath)
Verifies the providers against the defined consumers in the context of a build plugin
|
ProviderVerifier(java.lang.Object pactLoadFailureMessage,
java.util.function.Function<java.lang.Object,java.lang.Boolean> checkBuildSpecificTask,
java.util.function.BiConsumer<java.lang.Object,au.com.dius.pact.core.model.ProviderState> executeBuildSpecificTask)
Verifies the providers against the defined consumers in the context of a build plugin
|
ProviderVerifier(java.lang.Object pactLoadFailureMessage,
java.util.function.Function<java.lang.Object,java.lang.Boolean> checkBuildSpecificTask)
Verifies the providers against the defined consumers in the context of a build plugin
|
ProviderVerifier(java.lang.Object pactLoadFailureMessage)
Verifies the providers against the defined consumers in the context of a build plugin
|
ProviderVerifier()
Verifies the providers against the defined consumers in the context of a build plugin
|
| Modifier and Type | Method and Description |
|---|---|
au.com.dius.pact.core.pactbroker.TestResult |
displayBodyResult(java.util.Map<java.lang.String,java.lang.Object> failures,
arrow.core.Either<au.com.dius.pact.core.matchers.BodyTypeMismatch,au.com.dius.pact.provider.BodyComparisonResult> comparison,
java.lang.String comparisonDescription,
java.lang.String interactionId) |
void |
displayFailures(java.util.Map<java.lang.String,? extends java.lang.Object> failures)
Displays all the failures from the verification run
|
au.com.dius.pact.core.pactbroker.TestResult |
displayHeadersResult(java.util.Map<java.lang.String,java.lang.Object> failures,
java.util.Map<java.lang.String,? extends java.util.List<java.lang.String>> expected,
java.util.Map<java.lang.String,? extends java.util.List<au.com.dius.pact.core.matchers.HeaderMismatch>> headers,
java.lang.String comparisonDescription,
java.lang.String interactionId) |
au.com.dius.pact.core.pactbroker.TestResult |
displayStatusResult(java.util.Map<java.lang.String,java.lang.Object> failures,
int status,
au.com.dius.pact.core.matchers.StatusMismatch mismatch,
java.lang.String comparisonDescription,
java.lang.String interactionId) |
boolean |
filterConsumers(IConsumerInfo consumer) |
boolean |
filterInteractions(au.com.dius.pact.core.model.Interaction interaction) |
void |
finaliseReports()
Finalise all the reports after verification is complete
|
java.util.function.Function<java.lang.Object,java.lang.Boolean> |
getCheckBuildSpecificTask()
Callback to determine if something is a build specific task
|
java.util.function.BiConsumer<java.lang.Object,au.com.dius.pact.core.model.ProviderState> |
getExecuteBuildSpecificTask()
Consumer SAM to execute the build specific task
|
java.lang.Object |
getPactLoadFailureMessage()
Callback to display a pact load error
|
au.com.dius.pact.core.model.PactReader |
getPactReader() |
java.util.function.Supplier<java.util.List> |
getProjectClasspath()
Callback to return the project classpath to use for looking up methods
|
java.util.function.Function<java.lang.String,java.lang.String> |
getProjectGetProperty()
Callback to fetch a project property
|
java.util.function.Function<java.lang.String,java.lang.Boolean> |
getProjectHasProperty()
Callback to determine is the project has a particular property
|
java.util.function.Function<java.lang.reflect.Method,java.lang.Object> |
getProviderMethodInstance()
Callback to return the instance for the provider method to invoke
|
java.util.function.Supplier<java.lang.String> |
getProviderTag()
Callback to get the provider tag
|
java.util.function.Supplier<java.lang.String> |
getProviderVersion()
Callback to get the provider version
|
java.util.List<au.com.dius.pact.provider.reporters.VerifierReporter> |
getReporters()
List of the all reporters to report the results of the verification to
|
StateChange |
getStateChangeHandler() |
VerificationReporter |
getVerificationReporter() |
void |
initialiseReporters(ProviderInfo provider) |
au.com.dius.pact.core.model.Pact<? extends au.com.dius.pact.core.model.Interaction> |
loadPactFileForConsumer(IConsumerInfo consumer) |
boolean |
publishingResultsDisabled()
This will return true unless the pact.verifier.publishResults property has the value of "true"
|
void |
reportInteractionDescription(au.com.dius.pact.core.model.Interaction interaction)
Display info about the interaction about to be verified
|
void |
reportStateForInteraction(java.lang.String state,
IProviderInfo provider,
IConsumerInfo consumer,
boolean isSetup)
Reports the state of the interaction to all the registered reporters
|
void |
reportVerificationForConsumer(IConsumerInfo consumer,
IProviderInfo provider,
au.com.dius.pact.core.model.PactSource pactSource) |
void |
runVerificationForConsumer(java.util.Map<java.lang.String,java.lang.Object> failures,
IProviderInfo provider,
IConsumerInfo consumer,
au.com.dius.pact.core.pactbroker.PactBrokerClient client) |
void |
runVerificationForConsumer(java.util.Map<java.lang.String,java.lang.Object> failures,
IProviderInfo provider,
IConsumerInfo consumer) |
void |
setCheckBuildSpecificTask(java.util.function.Function<java.lang.Object,java.lang.Boolean> p)
Callback to determine if something is a build specific task
|
void |
setExecuteBuildSpecificTask(java.util.function.BiConsumer<java.lang.Object,au.com.dius.pact.core.model.ProviderState> p)
Consumer SAM to execute the build specific task
|
void |
setPactLoadFailureMessage(java.lang.Object p)
Callback to display a pact load error
|
void |
setPactReader(au.com.dius.pact.core.model.PactReader p) |
void |
setProjectClasspath(java.util.function.Supplier<java.util.List> p)
Callback to return the project classpath to use for looking up methods
|
void |
setProjectGetProperty(java.util.function.Function<java.lang.String,java.lang.String> p)
Callback to fetch a project property
|
void |
setProjectHasProperty(java.util.function.Function<java.lang.String,java.lang.Boolean> p)
Callback to determine is the project has a particular property
|
void |
setProviderMethodInstance(java.util.function.Function<java.lang.reflect.Method,java.lang.Object> p)
Callback to return the instance for the provider method to invoke
|
void |
setProviderTag(java.util.function.Supplier<java.lang.String> p)
Callback to get the provider tag
|
void |
setProviderVersion(java.util.function.Supplier<java.lang.String> p)
Callback to get the provider version
|
void |
setReporters(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
|
void |
setStateChangeHandler(StateChange p) |
void |
setVerificationReporter(VerificationReporter p) |
au.com.dius.pact.core.pactbroker.TestResult |
verifyInteraction(IProviderInfo provider,
IConsumerInfo consumer,
java.util.Map<java.lang.String,java.lang.Object> failures,
au.com.dius.pact.core.model.Interaction interaction,
ProviderClient providerClient) |
au.com.dius.pact.core.pactbroker.TestResult |
verifyInteraction(IProviderInfo provider,
IConsumerInfo consumer,
java.util.Map<java.lang.String,java.lang.Object> failures,
au.com.dius.pact.core.model.Interaction interaction) |
au.com.dius.pact.core.pactbroker.TestResult |
verifyMessagePact(java.util.Set<java.lang.reflect.Method> methods,
au.com.dius.pact.core.model.messaging.Message message,
java.lang.String interactionMessage,
java.util.Map<java.lang.String,java.lang.Object> failures) |
java.util.Map<java.lang.String,java.lang.Object> |
verifyProvider(ProviderInfo provider)
Run the verification for the given provider and return an failures in a Map
|
au.com.dius.pact.core.pactbroker.TestResult |
verifyRequestResponsePact(au.com.dius.pact.core.model.Response expectedResponse,
java.util.Map<java.lang.String,? extends java.lang.Object> actualResponse,
java.lang.String interactionMessage,
java.util.Map<java.lang.String,java.lang.Object> failures,
java.lang.String interactionId)
Compares the expected and actual responses
|
au.com.dius.pact.core.pactbroker.TestResult |
verifyResponseByInvokingProviderMethods(IProviderInfo providerInfo,
IConsumerInfo consumer,
au.com.dius.pact.core.model.Interaction interaction,
java.lang.String interactionMessage,
java.util.Map<java.lang.String,java.lang.Object> failures)
Verifies the interaction by invoking a method on a provider test class
|
au.com.dius.pact.core.pactbroker.TestResult |
verifyResponseFromProvider(IProviderInfo provider,
au.com.dius.pact.core.model.RequestResponseInteraction interaction,
java.lang.String interactionMessage,
java.util.Map<java.lang.String,java.lang.Object> failures,
ProviderClient client)
Verifies the response from the provider against the interaction
|
au.com.dius.pact.core.pactbroker.TestResult |
verifyResponseFromProvider(IProviderInfo provider,
au.com.dius.pact.core.model.RequestResponseInteraction interaction,
java.lang.String interactionMessage,
java.util.Map<java.lang.String,java.lang.Object> failures,
ProviderClient client,
java.util.Map<java.lang.String,? extends java.lang.Object> context)
Verifies the response from the provider against the interaction
|
displayFailures, finaliseReports, getCheckBuildSpecificTask, getExecuteBuildSpecificTask, getPactLoadFailureMessage, getProjectClasspath, getProjectGetProperty, getProjectHasProperty, getProviderMethodInstance, getProviderTag, getProviderVersion, getReporters, publishingResultsDisabled, reportInteractionDescription, reportStateForInteraction, setCheckBuildSpecificTask, setExecuteBuildSpecificTask, setPactLoadFailureMessage, setProjectClasspath, setProjectGetProperty, setProjectHasProperty, setProviderMethodInstance, setProviderTag, setProviderVersion, setReporters, verifyProvider, verifyRequestResponsePact, verifyResponseByInvokingProviderMethods, verifyResponseFromProvider, verifyResponseFromProviderpublic static java.lang.String PACT_VERIFIER_PUBLISH_RESULTS
public static java.lang.String PACT_FILTER_CONSUMERS
public static java.lang.String PACT_FILTER_DESCRIPTION
public static java.lang.String PACT_FILTER_PROVIDERSTATE
public static java.lang.String PACT_SHOW_STACKTRACE
public static java.lang.String PACT_SHOW_FULLDIFF
public static java.lang.String PACT_PROVIDER_VERSION
public static java.lang.String PACT_PROVIDER_TAG
public static java.lang.String PACT_PROVIDER_VERSION_TRIM_SNAPSHOT
public static ProviderVerifier.Companion Companion
public ProviderVerifier(java.lang.Object pactLoadFailureMessage,
java.util.function.Function<java.lang.Object,java.lang.Boolean> checkBuildSpecificTask,
java.util.function.BiConsumer<java.lang.Object,au.com.dius.pact.core.model.ProviderState> executeBuildSpecificTask,
java.util.function.Supplier<java.util.List> projectClasspath,
java.util.List<? extends au.com.dius.pact.provider.reporters.VerifierReporter> reporters,
java.util.function.Function<java.lang.reflect.Method,java.lang.Object> providerMethodInstance,
java.util.function.Supplier<java.lang.String> providerVersion,
java.util.function.Supplier<java.lang.String> providerTag)
Verifies the providers against the defined consumers in the context of a build plugin
pactLoadFailureMessage - Callback to display a pact load errorcheckBuildSpecificTask - Callback to determine if something is a build specific taskexecuteBuildSpecificTask - Consumer SAM to execute the build specific taskprojectClasspath - Callback to return the project classpath to use for looking up methodsreporters - List of the all reporters to report the results of the verification toproviderMethodInstance - Callback to return the instance for the provider method to invokeproviderVersion - Callback to get the provider versionproviderTag - Callback to get the provider tagpublic ProviderVerifier(java.lang.Object pactLoadFailureMessage,
java.util.function.Function<java.lang.Object,java.lang.Boolean> checkBuildSpecificTask,
java.util.function.BiConsumer<java.lang.Object,au.com.dius.pact.core.model.ProviderState> executeBuildSpecificTask,
java.util.function.Supplier<java.util.List> projectClasspath,
java.util.List<? extends au.com.dius.pact.provider.reporters.VerifierReporter> reporters,
java.util.function.Function<java.lang.reflect.Method,java.lang.Object> providerMethodInstance,
java.util.function.Supplier<java.lang.String> providerVersion)
Verifies the providers against the defined consumers in the context of a build plugin
pactLoadFailureMessage - Callback to display a pact load errorcheckBuildSpecificTask - Callback to determine if something is a build specific taskexecuteBuildSpecificTask - Consumer SAM to execute the build specific taskprojectClasspath - Callback to return the project classpath to use for looking up methodsreporters - List of the all reporters to report the results of the verification toproviderMethodInstance - Callback to return the instance for the provider method to invokeproviderVersion - Callback to get the provider versionpublic ProviderVerifier(java.lang.Object pactLoadFailureMessage,
java.util.function.Function<java.lang.Object,java.lang.Boolean> checkBuildSpecificTask,
java.util.function.BiConsumer<java.lang.Object,au.com.dius.pact.core.model.ProviderState> executeBuildSpecificTask,
java.util.function.Supplier<java.util.List> projectClasspath,
java.util.List<? extends au.com.dius.pact.provider.reporters.VerifierReporter> reporters,
java.util.function.Function<java.lang.reflect.Method,java.lang.Object> providerMethodInstance)
Verifies the providers against the defined consumers in the context of a build plugin
pactLoadFailureMessage - Callback to display a pact load errorcheckBuildSpecificTask - Callback to determine if something is a build specific taskexecuteBuildSpecificTask - Consumer SAM to execute the build specific taskprojectClasspath - Callback to return the project classpath to use for looking up methodsreporters - List of the all reporters to report the results of the verification toproviderMethodInstance - Callback to return the instance for the provider method to invokepublic ProviderVerifier(java.lang.Object pactLoadFailureMessage,
java.util.function.Function<java.lang.Object,java.lang.Boolean> checkBuildSpecificTask,
java.util.function.BiConsumer<java.lang.Object,au.com.dius.pact.core.model.ProviderState> executeBuildSpecificTask,
java.util.function.Supplier<java.util.List> projectClasspath,
java.util.List<? extends au.com.dius.pact.provider.reporters.VerifierReporter> reporters)
Verifies the providers against the defined consumers in the context of a build plugin
pactLoadFailureMessage - Callback to display a pact load errorcheckBuildSpecificTask - Callback to determine if something is a build specific taskexecuteBuildSpecificTask - Consumer SAM to execute the build specific taskprojectClasspath - Callback to return the project classpath to use for looking up methodsreporters - List of the all reporters to report the results of the verification topublic ProviderVerifier(java.lang.Object pactLoadFailureMessage,
java.util.function.Function<java.lang.Object,java.lang.Boolean> checkBuildSpecificTask,
java.util.function.BiConsumer<java.lang.Object,au.com.dius.pact.core.model.ProviderState> executeBuildSpecificTask,
java.util.function.Supplier<java.util.List> projectClasspath)
Verifies the providers against the defined consumers in the context of a build plugin
pactLoadFailureMessage - Callback to display a pact load errorcheckBuildSpecificTask - Callback to determine if something is a build specific taskexecuteBuildSpecificTask - Consumer SAM to execute the build specific taskprojectClasspath - Callback to return the project classpath to use for looking up methodspublic ProviderVerifier(java.lang.Object pactLoadFailureMessage,
java.util.function.Function<java.lang.Object,java.lang.Boolean> checkBuildSpecificTask,
java.util.function.BiConsumer<java.lang.Object,au.com.dius.pact.core.model.ProviderState> executeBuildSpecificTask)
Verifies the providers against the defined consumers in the context of a build plugin
pactLoadFailureMessage - Callback to display a pact load errorcheckBuildSpecificTask - Callback to determine if something is a build specific taskexecuteBuildSpecificTask - Consumer SAM to execute the build specific taskpublic ProviderVerifier(java.lang.Object pactLoadFailureMessage,
java.util.function.Function<java.lang.Object,java.lang.Boolean> checkBuildSpecificTask)
Verifies the providers against the defined consumers in the context of a build plugin
pactLoadFailureMessage - Callback to display a pact load errorcheckBuildSpecificTask - Callback to determine if something is a build specific taskpublic ProviderVerifier(java.lang.Object pactLoadFailureMessage)
Verifies the providers against the defined consumers in the context of a build plugin
pactLoadFailureMessage - Callback to display a pact load errorpublic ProviderVerifier()
Verifies the providers against the defined consumers in the context of a build plugin
public java.util.function.Function<java.lang.String,java.lang.Boolean> getProjectHasProperty()
Callback to determine is the project has a particular property
public void setProjectHasProperty(java.util.function.Function<java.lang.String,java.lang.Boolean> p)
Callback to determine is the project has a particular property
public java.util.function.Function<java.lang.String,java.lang.String> getProjectGetProperty()
Callback to fetch a project property
public void setProjectGetProperty(java.util.function.Function<java.lang.String,java.lang.String> p)
Callback to fetch a project property
public VerificationReporter getVerificationReporter()
public void setVerificationReporter(VerificationReporter p)
public StateChange getStateChangeHandler()
public void setStateChangeHandler(StateChange p)
public au.com.dius.pact.core.model.PactReader getPactReader()
public void setPactReader(au.com.dius.pact.core.model.PactReader p)
public boolean publishingResultsDisabled()
This will return true unless the pact.verifier.publishResults property has the value of "true"
public au.com.dius.pact.core.pactbroker.TestResult verifyResponseByInvokingProviderMethods(IProviderInfo providerInfo, IConsumerInfo consumer, au.com.dius.pact.core.model.Interaction interaction, java.lang.String interactionMessage, java.util.Map<java.lang.String,java.lang.Object> failures)
Verifies the interaction by invoking a method on a provider test class
public au.com.dius.pact.core.pactbroker.TestResult displayBodyResult(java.util.Map<java.lang.String,java.lang.Object> failures,
arrow.core.Either<au.com.dius.pact.core.matchers.BodyTypeMismatch,au.com.dius.pact.provider.BodyComparisonResult> comparison,
java.lang.String comparisonDescription,
java.lang.String interactionId)
public au.com.dius.pact.core.pactbroker.TestResult verifyMessagePact(java.util.Set<java.lang.reflect.Method> methods,
au.com.dius.pact.core.model.messaging.Message message,
java.lang.String interactionMessage,
java.util.Map<java.lang.String,java.lang.Object> failures)
public void displayFailures(java.util.Map<java.lang.String,? extends java.lang.Object> failures)
Displays all the failures from the verification run
public void finaliseReports()
Finalise all the reports after verification is complete
public au.com.dius.pact.core.pactbroker.TestResult verifyInteraction(IProviderInfo provider, IConsumerInfo consumer, java.util.Map<java.lang.String,java.lang.Object> failures, au.com.dius.pact.core.model.Interaction interaction, ProviderClient providerClient)
public au.com.dius.pact.core.pactbroker.TestResult verifyInteraction(IProviderInfo provider, IConsumerInfo consumer, java.util.Map<java.lang.String,java.lang.Object> failures, au.com.dius.pact.core.model.Interaction interaction)
public void reportInteractionDescription(au.com.dius.pact.core.model.Interaction interaction)
Display info about the interaction about to be verified
public au.com.dius.pact.core.pactbroker.TestResult verifyRequestResponsePact(au.com.dius.pact.core.model.Response expectedResponse,
java.util.Map<java.lang.String,? extends java.lang.Object> actualResponse,
java.lang.String interactionMessage,
java.util.Map<java.lang.String,java.lang.Object> failures,
java.lang.String interactionId)
Compares the expected and actual responses
public au.com.dius.pact.core.pactbroker.TestResult displayStatusResult(java.util.Map<java.lang.String,java.lang.Object> failures,
int status,
au.com.dius.pact.core.matchers.StatusMismatch mismatch,
java.lang.String comparisonDescription,
java.lang.String interactionId)
public au.com.dius.pact.core.pactbroker.TestResult displayHeadersResult(java.util.Map<java.lang.String,java.lang.Object> failures,
java.util.Map<java.lang.String,? extends java.util.List<java.lang.String>> expected,
java.util.Map<java.lang.String,? extends java.util.List<au.com.dius.pact.core.matchers.HeaderMismatch>> headers,
java.lang.String comparisonDescription,
java.lang.String interactionId)
public au.com.dius.pact.core.pactbroker.TestResult verifyResponseFromProvider(IProviderInfo provider, au.com.dius.pact.core.model.RequestResponseInteraction interaction, java.lang.String interactionMessage, java.util.Map<java.lang.String,java.lang.Object> failures, ProviderClient client)
Verifies the response from the provider against the interaction
public au.com.dius.pact.core.pactbroker.TestResult verifyResponseFromProvider(IProviderInfo provider, au.com.dius.pact.core.model.RequestResponseInteraction interaction, java.lang.String interactionMessage, java.util.Map<java.lang.String,java.lang.Object> failures, ProviderClient client, java.util.Map<java.lang.String,? extends java.lang.Object> context)
Verifies the response from the provider against the interaction
public java.util.Map<java.lang.String,java.lang.Object> verifyProvider(ProviderInfo provider)
Run the verification for the given provider and return an failures in a Map
public void initialiseReporters(ProviderInfo provider)
public void runVerificationForConsumer(java.util.Map<java.lang.String,java.lang.Object> failures,
IProviderInfo provider,
IConsumerInfo consumer,
au.com.dius.pact.core.pactbroker.PactBrokerClient client)
public void runVerificationForConsumer(java.util.Map<java.lang.String,java.lang.Object> failures,
IProviderInfo provider,
IConsumerInfo consumer)
public void reportVerificationForConsumer(IConsumerInfo consumer, IProviderInfo provider, au.com.dius.pact.core.model.PactSource pactSource)
public au.com.dius.pact.core.model.Pact<? extends au.com.dius.pact.core.model.Interaction> loadPactFileForConsumer(IConsumerInfo consumer)
public boolean filterConsumers(IConsumerInfo consumer)
public boolean filterInteractions(au.com.dius.pact.core.model.Interaction interaction)
public void reportStateForInteraction(java.lang.String state,
IProviderInfo provider,
IConsumerInfo consumer,
boolean isSetup)
Reports the state of the interaction to all the registered reporters
public java.lang.Object getPactLoadFailureMessage()
Callback to display a pact load error
public void setPactLoadFailureMessage(java.lang.Object p)
Callback to display a pact load error
p - Callback to display a pact load errorpublic java.util.function.Function<java.lang.Object,java.lang.Boolean> getCheckBuildSpecificTask()
Callback to determine if something is a build specific task
public void setCheckBuildSpecificTask(java.util.function.Function<java.lang.Object,java.lang.Boolean> p)
Callback to determine if something is a build specific task
p - Callback to determine if something is a build specific taskpublic java.util.function.BiConsumer<java.lang.Object,au.com.dius.pact.core.model.ProviderState> getExecuteBuildSpecificTask()
Consumer SAM to execute the build specific task
public void setExecuteBuildSpecificTask(java.util.function.BiConsumer<java.lang.Object,au.com.dius.pact.core.model.ProviderState> p)
Consumer SAM to execute the build specific task
p - Consumer SAM to execute the build specific taskpublic java.util.function.Supplier<java.util.List> getProjectClasspath()
Callback to return the project classpath to use for looking up methods
public void setProjectClasspath(java.util.function.Supplier<java.util.List> p)
Callback to return the project classpath to use for looking up methods
p - Callback to return the project classpath to use for looking up methodspublic java.util.List<au.com.dius.pact.provider.reporters.VerifierReporter> getReporters()
List of the all reporters to report the results of the verification to
public void setReporters(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
p - List of the all reporters to report the results of the verification topublic java.util.function.Function<java.lang.reflect.Method,java.lang.Object> getProviderMethodInstance()
Callback to return the instance for the provider method to invoke
public void setProviderMethodInstance(java.util.function.Function<java.lang.reflect.Method,java.lang.Object> p)
Callback to return the instance for the provider method to invoke
p - Callback to return the instance for the provider method to invokepublic java.util.function.Supplier<java.lang.String> getProviderVersion()
Callback to get the provider version
public void setProviderVersion(java.util.function.Supplier<java.lang.String> p)
Callback to get the provider version
p - Callback to get the provider versionpublic java.util.function.Supplier<java.lang.String> getProviderTag()
Callback to get the provider tag
public void setProviderTag(java.util.function.Supplier<java.lang.String> p)
Callback to get the provider tag
p - Callback to get the provider tag