pact-jvm-provider-junit5 pact-jvm-provider-junit5

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.31 KB
文件 pom jar
网址 https://github.com/DiUS/pact-jvm
发布时间 2019-09-29 08:15

dependencies

Group Artifact Version
org.junit.jupiter junit-jupiter-api 5.4.1
au.com.dius pact-jvm-core-support 4.0.0
au.com.dius pact-jvm-provider 4.0.0
org.slf4j slf4j-api 1.7.26

developers

thetrav Travis Dixon
rholshausen Ronald Holshausen

licenses

Apache 2 http://www.apache.org/licenses/LICENSE-2.0.txt
索引仓库
仓库 个数
Central 592045
4469115