From 7faca9c4bbf6a6ed92b4d00aa6b317fcb8f96ba6 Mon Sep 17 00:00:00 2001
From: buildmaster
Maven. <artifactId>spring-cloud-contract-pact</artifactId> <version>${spring-cloud-contract.version}</version> </dependency> - <dependency> - <groupId>au.com.dius</groupId> - <artifactId>pact-jvm-model</artifactId> - <version>3.5.13</version> - </dependency> </dependencies> </plugin>
Gradle. -
classpath "org.springframework.cloud:spring-cloud-contract-pact:${findProperty('verifierVersion') ?: verifierVersion}" -classpath 'au.com.dius:pact-jvm-model:3.5.13'
+
classpath "org.springframework.cloud:spring-cloud-contract-pact:${findProperty('verifierVersion') ?: verifierVersion}"
When you execute the build of your application, a test will be generated. The generated test might be as follows:
@Test public void validate_shouldMarkClientAsFraud() throws Exception { @@ -232,16 +226,9 @@ current Pact version that you use.Maven. <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-contract-pact</artifactId> <scope>test</scope> -</dependency> -<dependency> - <groupId>au.com.dius</groupId> - <artifactId>pact-jvm-model</artifactId> - <version>3.5.13</version> - <scope>test</scope> </dependency>
Gradle. -
testCompile "org.springframework.cloud:spring-cloud-contract-pact" -testCompile 'au.com.dius:pact-jvm-model:3.5.13'
+
testCompile "org.springframework.cloud:spring-cloud-contract-pact"
If you want to generate tests for languages other than Java or you are not happy with the way the verifier builds Java tests, you can register your own implementation.
The SingleTestGenerator interface lets you register your own implementation. The
following code listing shows the SingleTestGenerator interface:
package org.springframework.cloud.contract.verifier.builder diff --git a/single/spring-cloud-contract.html b/single/spring-cloud-contract.html index bef2139ebb..c20d0f73b5 100644 --- a/single/spring-cloud-contract.html +++ b/single/spring-cloud-contract.html @@ -5566,16 +5566,10 @@ the current Pact version that you use.Maven. <artifactId>spring-cloud-contract-pact</artifactId> <version>${spring-cloud-contract.version}</version> </dependency> - <dependency> - <groupId>au.com.dius</groupId> - <artifactId>pact-jvm-model</artifactId> - <version>3.5.13</version> - </dependency> </dependencies> </plugin>
Gradle. -
classpath "org.springframework.cloud:spring-cloud-contract-pact:${findProperty('verifierVersion') ?: verifierVersion}" -classpath 'au.com.dius:pact-jvm-model:3.5.13'
+
classpath "org.springframework.cloud:spring-cloud-contract-pact:${findProperty('verifierVersion') ?: verifierVersion}"
When you execute the build of your application, a test will be generated. The generated test might be as follows:
@Test public void validate_shouldMarkClientAsFraud() throws Exception { @@ -5628,16 +5622,9 @@ current Pact version that you use.Maven. <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-contract-pact</artifactId> <scope>test</scope> -</dependency> -<dependency> - <groupId>au.com.dius</groupId> - <artifactId>pact-jvm-model</artifactId> - <version>3.5.13</version> - <scope>test</scope> </dependency>
Gradle. -
testCompile "org.springframework.cloud:spring-cloud-contract-pact" -testCompile 'au.com.dius:pact-jvm-model:3.5.13'
+
testCompile "org.springframework.cloud:spring-cloud-contract-pact"
If you want to generate tests for languages other than Java or you are not happy with the way the verifier builds Java tests, you can register your own implementation.
The SingleTestGenerator interface lets you register your own implementation. The
following code listing shows the SingleTestGenerator interface:
package org.springframework.cloud.contract.verifier.builder diff --git a/spring-cloud-contract.xml b/spring-cloud-contract.xml index a6b72e9a2b..c68713c47f 100644 --- a/spring-cloud-contract.xml +++ b/spring-cloud-contract.xml @@ -8850,11 +8850,6 @@ the current Pact version that you use. <artifactId>spring-cloud-contract-pact</artifactId> <version>${spring-cloud-contract.version}</version> </dependency> - <dependency> - <groupId>au.com.dius</groupId> - <artifactId>pact-jvm-model</artifactId> - <version>3.5.13</version> - </dependency> </dependencies> </plugin> @@ -8862,8 +8857,7 @@ the current Pact version that you use.Gradle - classpath "org.springframework.cloud:spring-cloud-contract-pact:${findProperty('verifierVersion') ?: verifierVersion}" -classpath 'au.com.dius:pact-jvm-model:3.5.13' +classpath "org.springframework.cloud:spring-cloud-contract-pact:${findProperty('verifierVersion') ?: verifierVersion}" When you execute the build of your application, a test will be generated. The generated @@ -8928,20 +8922,13 @@ current Pact version that you use. <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-contract-pact</artifactId> <scope>test</scope> -</dependency> -<dependency> - <groupId>au.com.dius</groupId> - <artifactId>pact-jvm-model</artifactId> - <version>3.5.13</version> - <scope>test</scope> </dependency>Gradle - testCompile "org.springframework.cloud:spring-cloud-contract-pact" -testCompile 'au.com.dius:pact-jvm-model:3.5.13' +testCompile "org.springframework.cloud:spring-cloud-contract-pact"