public class AmpqTestTarget implements TestTarget
Test target for use with asynchronous providers (like with message queues).
This target will look for methods with a @PactVerifyProvider annotation where the value is the description of the interaction.
| Constructor and Description |
|---|
AmpqTestTarget(java.util.List<java.lang.String> packagesToScan)
Test target for use with asynchronous providers (like with message queues).
|
AmpqTestTarget()
Test target for use with asynchronous providers (like with message queues).
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Map<java.lang.String,java.lang.Object> |
executeInteraction(java.lang.Object client,
java.lang.Object request)
Executes the test (using the client and request from prepareRequest, if any)
|
java.util.List<java.lang.String> |
getPackagesToScan()
List of packages to scan for methods with
|
au.com.dius.pact.provider.ProviderInfo |
getProviderInfo(java.lang.String serviceName,
au.com.dius.pact.model.PactSource pactSource)
Returns information about the provider
|
boolean |
isHttpTarget()
If this is a request response (HTTP or HTTPS) target
|
kotlin.Pair<java.lang.Object,java.lang.Object> |
prepareRequest(au.com.dius.pact.model.Interaction interaction,
java.util.Map<java.lang.String,? extends java.lang.Object> context)
Prepares the request for the interaction.
|
void |
prepareVerifier(au.com.dius.pact.provider.IProviderVerifier verifier,
java.lang.Object testInstance)
Prepares the verifier for use during the test
|
executeInteraction, getProviderInfo, isHttpTarget, prepareRequest, prepareVerifierpublic AmpqTestTarget(java.util.List<java.lang.String> packagesToScan)
Test target for use with asynchronous providers (like with message queues).
This target will look for methods with a @PactVerifyProvider annotation where the value is the description of the interaction.
packagesToScan - List of packages to scan for methods with @PactVerifyProvider annotations. Defaults to thefull test classpath.public AmpqTestTarget()
Test target for use with asynchronous providers (like with message queues).
This target will look for methods with a @PactVerifyProvider annotation where the value is the description of the interaction.
public boolean isHttpTarget()
If this is a request response (HTTP or HTTPS) target
public au.com.dius.pact.provider.ProviderInfo getProviderInfo(java.lang.String serviceName,
au.com.dius.pact.model.PactSource pactSource)
Returns information about the provider
public kotlin.Pair<java.lang.Object,java.lang.Object> prepareRequest(au.com.dius.pact.model.Interaction interaction,
java.util.Map<java.lang.String,? extends java.lang.Object> context)
Prepares the request for the interaction.
public void prepareVerifier(au.com.dius.pact.provider.IProviderVerifier verifier,
java.lang.Object testInstance)
Prepares the verifier for use during the test
public java.util.Map<java.lang.String,java.lang.Object> executeInteraction(java.lang.Object client,
java.lang.Object request)
Executes the test (using the client and request from prepareRequest, if any)
public java.util.List<java.lang.String> getPackagesToScan()
List of packages to scan for methods with
@PactVerifyProvider annotations. Defaults to thefull test classpath.