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.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 28.72 KB
文件 pom jar
网址 https://github.com/DiUS/pact-jvm
发布时间 2018-10-21 11:11

dependencies

Group Artifact Version
au.com.dius pact-jvm-consumer_2.12 3.6.0-rc.1
org.junit.jupiter junit-jupiter-api 5.2.0
org.specs2 specs2-core_2.12 3.9.4
org.specs2 specs2-junit_2.12 3.9.4
org.hamcrest hamcrest-all 1.3
org.mockito mockito-core 1.10.19
junit junit 4.12
org.spockframework spock-core 1.1-groovy-2.4
org.objenesis objenesis 2.6
io.kotlintest kotlintest 2.0.7
org.codehaus.groovy groovy-all 2.4.12
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
cglib cglib 3.2.8
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
4908183