Package au.com.dius.pact.provider.junit5
Interface TestTarget
-
- All Implemented Interfaces:
public interface TestTargetInterface to a test target
-
-
Method Summary
Modifier and Type Method Description abstract IProviderInfogetProviderInfo(String serviceName, PactSource pactSource)Returns information about the provider abstract Pair<Object, Object>prepareRequest(Pact pact, Interaction interaction, Map<String, Object> context)Prepares the request for the interaction. abstract BooleanisHttpTarget()If this is a request response (HTTP or HTTPS) target abstract ProviderResponseexecuteInteraction(Object client, Object request)Executes the test (using the client and request from prepareRequest, if any) abstract UnitprepareVerifier(IProviderVerifier verifier, Object testInstance, Pact pact)Prepares the verifier for use during the test abstract Map<String, Object>getUserConfig()Any user provided configuration -
-
Method Detail
-
getProviderInfo
abstract IProviderInfo getProviderInfo(String serviceName, PactSource pactSource)
Returns information about the provider
-
prepareRequest
abstract Pair<Object, Object> prepareRequest(Pact pact, Interaction interaction, Map<String, Object> context)
Prepares the request for the interaction.
-
isHttpTarget
abstract Boolean isHttpTarget()
If this is a request response (HTTP or HTTPS) target
-
executeInteraction
abstract ProviderResponse executeInteraction(Object client, Object request)
Executes the test (using the client and request from prepareRequest, if any)
-
prepareVerifier
abstract Unit prepareVerifier(IProviderVerifier verifier, Object testInstance, Pact pact)
Prepares the verifier for use during the test
-
getUserConfig
abstract Map<String, Object> getUserConfig()
Any user provided configuration
-
-
-
-