From b7fd9bcc2521497b169cb9582e6cd0bf77ab1564 Mon Sep 17 00:00:00 2001 From: buildmaster Date: Fri, 23 Sep 2016 20:56:29 +0000 Subject: [PATCH] Sync docs from master to gh-pages --- spring-cloud-contract.html | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/spring-cloud-contract.html b/spring-cloud-contract.html index 32fcd39e39..a13e7a43da 100644 --- a/spring-cloud-contract.html +++ b/spring-cloud-contract.html @@ -3021,21 +3021,17 @@ extended by the autogenerated tests. You have two options:

The convention is such that if you have a contract under e.g. src/test/resources/contract/hello/v1/ and provide the value of the packageWithBaseClasses property to hello then we will assume that there is a HelloV1Base class under hello package. In other words we take last two parts of package -if they exist and form a class with a Base suffix. Takes precedence over baseClassForTests. Example of usage in the contracts closure:

+if they exist and form a class with a Base suffix. Takes precedence over baseClassForTests. Example of usage:

-
			<plugin>
-				<groupId>org.springframework.cloud</groupId>
-				<artifactId>spring-cloud-contract-maven-plugin</artifactId>
-				<configuration>
-					<packageWithBaseClasses>hello</packageWithBaseClasses>
-				</configuration>
-			</plugin>
-		</plugins>
-	</build>
-
-</project>
+
<plugin>
+	<groupId>org.springframework.cloud</groupId>
+	<artifactId>spring-cloud-contract-maven-plugin</artifactId>
+	<configuration>
+		<packageWithBaseClasses>hello</packageWithBaseClasses>
+	</configuration>
+</plugin>