public class ProviderVerifierBase implements IProviderVerifier
Verifies the providers against the defined consumers in the context of a build plugin
| Modifier and Type | Class and Description |
|---|---|
static class |
ProviderVerifierBase.Companion |
| Modifier and Type | Field and Description |
|---|---|
static ProviderVerifierBase.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_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 |
|---|
ProviderVerifierBase(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
|
ProviderVerifierBase(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
|
ProviderVerifierBase(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
|
ProviderVerifierBase(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
|
ProviderVerifierBase(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
|
ProviderVerifierBase(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
|
ProviderVerifierBase(java.lang.Object pactLoadFailureMessage)
Verifies the providers against the defined consumers in the context of a build plugin
|
ProviderVerifierBase()
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,
java.util.Map<java.lang.String,? extends java.lang.Object> comparison,
java.lang.String comparisonDescription) |
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.lang.Object> comparison,
java.lang.String comparisonDescription) |
au.com.dius.pact.core.pactbroker.TestResult |
displayStatusResult(java.util.Map<java.lang.String,java.lang.Object> failures,
int status,
java.lang.Object comparison,
java.lang.String comparisonDescription) |
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() |
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() |
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> |
getProviderVersion() |
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() |
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 |
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) |
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) |
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 |
setProviderVersion(java.util.function.Supplier<java.lang.String> p) |
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) |
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) |
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)
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, getProjectClasspath, getProjectHasProperty, getProviderMethodInstance, getReporters, publishingResultsDisabled, reportInteractionDescription, reportStateForInteraction, setCheckBuildSpecificTask, setExecuteBuildSpecificTask, setProjectClasspath, setProjectHasProperty, setProviderMethodInstance, setReporters, 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_VERSION_TRIM_SNAPSHOT
public static ProviderVerifierBase.Companion Companion
public ProviderVerifierBase(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
checkBuildSpecificTask - 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 ProviderVerifierBase(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
checkBuildSpecificTask - 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 ProviderVerifierBase(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
checkBuildSpecificTask - 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 ProviderVerifierBase(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
checkBuildSpecificTask - 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 ProviderVerifierBase(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
checkBuildSpecificTask - Callback to determine if something is a build specific taskexecuteBuildSpecificTask - Consumer SAM to execute the build specific taskpublic ProviderVerifierBase(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
checkBuildSpecificTask - Callback to determine if something is a build specific taskpublic ProviderVerifierBase(java.lang.Object pactLoadFailureMessage)
Verifies the providers against the defined consumers in the context of a build plugin
public ProviderVerifierBase()
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()
public void setProjectGetProperty(java.util.function.Function<java.lang.String,java.lang.String> p)
public VerificationReporter getVerificationReporter()
public void setVerificationReporter(VerificationReporter p)
public StateChange getStateChangeHandler()
public void setStateChangeHandler(StateChange 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,
java.util.Map<java.lang.String,? extends java.lang.Object> comparison,
java.lang.String comparisonDescription)
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)
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)
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,
java.lang.Object comparison,
java.lang.String comparisonDescription)
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.lang.Object> comparison,
java.lang.String comparisonDescription)
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.lang.Object getPactLoadFailureMessage()
public void setPactLoadFailureMessage(java.lang.Object p)
public 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()
public void setProviderVersion(java.util.function.Supplier<java.lang.String> p)