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.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.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.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.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.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 |
|---|---|
boolean |
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
|
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.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
|
VerificationReporter |
getVerificationReporter() |
boolean |
publishingResultsDisabled()
This will return true unless the pact.verifier.publishResults property has the value of "true"
|
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.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 |
setVerificationReporter(VerificationReporter p) |
boolean |
verifyMessagePact(java.util.Set<java.lang.reflect.Method> methods,
au.com.dius.pact.model.v3.messaging.Message message,
java.lang.String interactionMessage,
java.util.Map<java.lang.String,java.lang.Object> failures) |
boolean |
verifyResponseByInvokingProviderMethods(IProviderInfo providerInfo,
IConsumerInfo consumer,
au.com.dius.pact.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
|
displayFailures, finaliseReports, getCheckBuildSpecificTask, getExecuteBuildSpecificTask, getProjectClasspath, getProjectHasProperty, getProviderMethodInstance, getReporters, publishingResultsDisabled, reportStateForInteraction, setCheckBuildSpecificTask, setExecuteBuildSpecificTask, setProjectClasspath, setProjectHasProperty, setProviderMethodInstance, setReporters, verifyRequestResponsePact, verifyResponseByInvokingProviderMethods, 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.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.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.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.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.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 boolean publishingResultsDisabled()
This will return true unless the pact.verifier.publishResults property has the value of "true"
public boolean verifyResponseByInvokingProviderMethods(IProviderInfo providerInfo, IConsumerInfo consumer, au.com.dius.pact.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 boolean 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 boolean verifyMessagePact(java.util.Set<java.lang.reflect.Method> methods,
au.com.dius.pact.model.v3.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 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.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.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)