pact-jvm-provider-junit5_2.12 pact-jvm-provider-junit5_2.12

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

dependencies

Group Artifact Version
au.com.dius pact-jvm-support 3.6.11
au.com.dius pact-jvm-provider_2.12 3.6.11
org.junit.jupiter junit-jupiter-api 5.2.0
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
ru.lanwen.wiremock wiremock-junit5 1.1.1
com.github.tomakehurst wiremock 2.19.0
ch.qos.logback logback-classic 1.2.3
org.junit.jupiter junit-jupiter-engine 5.2.0
org.junit.vintage junit-vintage-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
6177703