pact-jvm-consumer-junit5_2.12 pact-jvm-consumer-junit5_2.12

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.6.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 32.68 KB
文件 pom jar
网址 https://github.com/DiUS/pact-jvm
发布时间 2020-04-29 11:39

dependencies

Group Artifact Version
au.com.dius pact-jvm-consumer_2.12 3.6.15
org.junit.jupiter junit-jupiter-api 5.2.0
org.slf4j slf4j-api 1.7.25
org.hamcrest hamcrest 2.1
org.spockframework spock-core 1.3-groovy-2.5
net.bytebuddy byte-buddy 1.9.13
org.objenesis objenesis 3.0.1
org.codehaus.groovy groovy 2.5.6
ch.qos.logback logback-core 1.2.3
ch.qos.logback logback-classic 1.2.3
org.codehaus.groovy.modules.http-builder http-builder 0.7.1
org.codehaus.groovy groovy-xml 2.5.6
org.apache.commons commons-io 1.3.2
org.junit.vintage junit-vintage-engine 5.2.0
org.junit.jupiter junit-jupiter-engine 5.2.0

developers

thetrav Travis Dixon
rholshausen Ronald Holshausen

licenses

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