Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
43 additions
and
44 deletions.
There are no files selected for viewing
43 changes: 0 additions & 43 deletions
43
...tools/spring-cloud-contract-maven-plugin/src/site/asciidoc/complex-content.adoc
This file was deleted.
Oops, something went wrong.
44 changes: 43 additions & 1 deletion
44
...ontract-tools/spring-cloud-contract-maven-plugin/src/site/asciidoc/complex.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,45 @@ | ||
:root_folder: ../../.. | ||
|
||
include::complex-content.adoc[] | ||
== More Complex Plugin Configuration | ||
|
||
Sample more complex configuration for Java Project with JUnit tests. | ||
|
||
|
||
=== Project configuration for Spring Cloud Contract Verifier with JUnit tests and stub publishing | ||
|
||
[source,xml] | ||
---- | ||
include::{root_folder}/src/test/projects/complex-configuration/pom.xml[tags=plugin] | ||
---- | ||
|
||
=== Base Test class | ||
|
||
[source,java] | ||
---- | ||
include::{root_folder}/src/test/projects/complex-configuration/src/test/java/com/blogspot/toomuchcoding/frauddetection/BaseAccurest.java[] | ||
---- | ||
|
||
|
||
=== Sample additional matcher | ||
|
||
[source,java] | ||
---- | ||
include::{root_folder}/src/test/projects/complex-configuration/src/test/java/com/blogspot/toomuchcoding/frauddetection/matchers/CustomMatchers.java[] | ||
---- | ||
|
||
=== Sample contract using matcher | ||
|
||
[source,java] | ||
---- | ||
include::{root_folder}/src/test/projects/complex-configuration/src/test/contracts/shouldMarkClientAsNotFraud.groovy[] | ||
---- | ||
|
||
|
||
=== Project source code | ||
|
||
https://github.com/Codearte/accurest-maven-plugin/tree/master/spring-cloud-contract-tools/spring-cloud-contract-maven-plugin/src/test/projects/complex-configuration | ||
|
||
=== More samples | ||
|
||
You can check out the https://github.com/spring-cloud-samples/spring-cloud-contract-samples[Spring Cloud Contract Samples project] for | ||
more examples of Maven plugin setup. |