pact-jvm-consumer-junit5_2.11 pact-jvm-consumer-junit5_2.11
Group | au.com.dius |
描述 | pact-jvm-consumer-junit5 ======================== JUnit 5 support for Pact consumer tests ## Dependency The library is available on maven central using: * group-id = `au.com.dius` * artifact-id = `pact-jvm-consumer-junit5_2.12` * version-id = `3.5.x` ## Usage ### 1. Add the Pact consumer test extension to the test class. To write Pact consumer tests with JUnit 5, you need to add `@ExtendWith(PactConsumerTestExt)` to your test class. This replaces the `PactRunner` used for JUnit 4 tests. The rest of the test follows a similar pattern as for JUnit 4 tests. ```java @ExtendWith(PactConsumerTestExt.class) class ExampleJavaConsumerPactTest { ``` ### 2. create a method annotated with `@Pact` that returns the interactions for the test For each test (as with JUnit 4), you need to define a |
Packaging | jar |
Size | 21.86 KB |
文件 | pom jar |
网址 | https://github.com/DiUS/pact-jvm |
发布时间 | 2018-04-22 14:44 |
dependencies
developers
thetrav | Travis Dixon | |
rholshausen | Ronald Holshausen |
licenses
Apache 2 | http://www.apache.org/licenses/LICENSE-2.0.txt |
索引仓库
仓库 | 个数 |
Central | 592045 |