public class MessageTestTarget 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.
@JvmOverloads
public MessageTestTarget(@NotNull
java.util.List<java.lang.String> packagesToScan,
@Nullable
java.lang.ClassLoader classLoader)
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.@JvmOverloads
public MessageTestTarget(@NotNull
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.@JvmOverloads public MessageTestTarget()
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
@NotNull
public au.com.dius.pact.provider.ProviderInfo getProviderInfo(@NotNull
java.lang.String serviceName,
@Nullable
au.com.dius.pact.core.model.PactSource pactSource)
Returns information about the provider
@Nullable
public kotlin.Pair<java.lang.Object,java.lang.Object> prepareRequest(@NotNull
au.com.dius.pact.core.model.Interaction interaction,
@NotNull
java.util.Map<java.lang.String,? extends java.lang.Object> context)
Prepares the request for the interaction.
public void prepareVerifier(@NotNull
au.com.dius.pact.provider.IProviderVerifier verifier,
@NotNull
java.lang.Object testInstance)
Prepares the verifier for use during the test
@NotNull
public au.com.dius.pact.provider.ProviderResponse executeInteraction(@Nullable
java.lang.Object client,
@Nullable
java.lang.Object request)
Executes the test (using the client and request from prepareRequest, if any)