Package au.com.dius.pact.provider.junit5
Class PactVerificationInvocationContextProvider
-
- All Implemented Interfaces:
-
org.junit.jupiter.api.extension.Extension
,org.junit.jupiter.api.extension.TestTemplateInvocationContextProvider
public class PactVerificationInvocationContextProvider implements TestTemplateInvocationContextProvider
Main TestTemplateInvocationContextProvider for JUnit 5 Pact verification tests. This class needs to be applied to a test template method on a test class annotated with a @Provider annotation.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
PactVerificationInvocationContextProvider.Companion
-
Field Summary
Fields Modifier and Type Field Description public final static PactVerificationInvocationContextProvider.Companion
Companion
-
Constructor Summary
Constructors Constructor Description PactVerificationInvocationContextProvider()
-
Method Summary
Modifier and Type Method Description Stream<TestTemplateInvocationContext>
provideTestTemplateInvocationContexts(ExtensionContext context)
final List<Pact>
handleException(ExtensionContext context, ValueResolver valueResolver, Exception exception)
Boolean
supportsTestTemplate(ExtensionContext context)
-
-
Method Detail
-
provideTestTemplateInvocationContexts
Stream<TestTemplateInvocationContext> provideTestTemplateInvocationContexts(ExtensionContext context)
-
handleException
final List<Pact> handleException(ExtensionContext context, ValueResolver valueResolver, Exception exception)
-
supportsTestTemplate
Boolean supportsTestTemplate(ExtensionContext context)
-
-
-
-