From 6963528a4a43407b3fadf3c540f125b7da682e84 Mon Sep 17 00:00:00 2001 From: Marcin Grzejszczak Date: Tue, 13 Dec 2016 09:52:08 +0100 Subject: [PATCH] Updated contract docs --- docs/src/main/asciidoc/verifier/contract.adoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/src/main/asciidoc/verifier/contract.adoc b/docs/src/main/asciidoc/verifier/contract.adoc index be8af502cc..b661132f30 100644 --- a/docs/src/main/asciidoc/verifier/contract.adoc +++ b/docs/src/main/asciidoc/verifier/contract.adoc @@ -602,7 +602,7 @@ and just register it in your `spring.factories` file [source] ---- -include::{tests_path}/spring-cloud-contract-stub-runner-moco/src/test/resources/META-INF/spring.factories[indent=0,lines=1,4] +include::{tests_path}/spring-cloud-contract-stub-runner-moco/src/test/resources/META-INF/spring.factories[indent=0,lines=1..4] ---- that way you'll be able to run stubs using Moco. @@ -620,7 +620,7 @@ from classpath, copies them to a temp file and then passes that temporary folder [source,java] ---- -include::{tests_path}/spring-cloud-contract-stub-runner-moco/src/test/groovy/org/springframework/cloud/contract/stubrunner/provider/moco/ClasspathStubProvider.groovy[indent=0] +include::{tests_path}/spring-cloud-contract-stub-runner-moco/src/test/groovy/org/springframework/cloud/contract/stubrunner/provider/moco/ClasspathStubProvider.groovy[indent=0,lines=16..-1] ---- and just register it in your `spring.factories` file