pact-jvm-provider-junit5_2.12 pact-jvm-provider-junit5_2.12
Group | au.com.dius |
描述 | # Pact Junit 5 Extension ## Overview For writing Pact verification tests with JUnit 5, there is an JUnit 5 Invocation Context Provider that you can use with the `@TestTemplate` annotation. This will generate a test for each interaction found for the pact files for the provider. To use it, add the `@Provider` and one of the pact source annotations to your test class (as per a JUnit 4 test), then add a method annotated with `@TestTemplate` and `@ExtendWith(PactVerificationInvocationContextProvider.class)` that takes a `PactVerificationContext` parameter. You will need to call `verifyInteraction()` on the context parameter in your test template method. For example: ```java @Provider("myAwesomeService") @PactFolder("pacts") public class ContractVerificationTest { |
Packaging | jar |
Size | 53.10 KB |
文件 | pom jar |
网址 | https://github.com/DiUS/pact-jvm |
发布时间 | 2019-09-08 10:34 |
dependencies
developers
thetrav | Travis Dixon | |
rholshausen | Ronald Holshausen |
licenses
Apache 2 | http://www.apache.org/licenses/LICENSE-2.0.txt |
索引仓库
仓库 | 个数 |
Central | 592045 |