pact-jvm-consumer-junit5 pact-jvm-consumer-junit5

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` * version-id = `4.0.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 meth
Packaging jar
Size 32.11 KB
文件 pom jar
网址 https://github.com/DiUS/pact-jvm
发布时间 2019-07-21 13:25

dependencies

Group Artifact Version
org.junit.jupiter junit-jupiter-api 5.4.1
au.com.dius pact-jvm-consumer 4.0.0-beta.4
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
6218912