Revert "Trying to make moco thing work"

This reverts commit 29f1d614eb.
This commit is contained in:
Marcin Grzejszczak
2017-05-31 16:42:50 +02:00
parent 29f1d614eb
commit cd67e1f0ea
3 changed files with 6 additions and 6 deletions

View File

@@ -8,8 +8,7 @@
<version>1.1.2.BUILD-SNAPSHOT</version>
<relativePath>..</relativePath>
</parent>
<groupId>com.example</groupId>
<artifactId>fraudDetectionServerMoco</artifactId>
<artifactId>spring-cloud-contract-stub-runner-moco-contract-jar</artifactId>
<packaging>jar</packaging>
<name>Spring Cloud Contract Stub Runner Moco Contract Jar</name>
<description>Spring Cloud Contract Stub Runner Moco Contract Jar</description>

View File

@@ -37,11 +37,12 @@ import spock.lang.Specification
* @author Marcin Grzejszczak
*/
@ContextConfiguration(classes = MocoConfig, loader = SpringBootContextLoader)
// tag::[classpath_stub_runner]
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.NONE)
@AutoConfigureStubRunner(ids = ["com.example:fraudDetectionServerMoco:+:"],
workOffline = true,
stubsPerConsumer = true,
consumerName = "nested")
// to use stubs from classpath just provide ids without passing any other properties to
// @AutoConfigureStubRunner
@AutoConfigureStubRunner( ids = ["com.example:fraudDetectionServerMoco"])
// end::[classpath_stub_runner]
@DirtiesContext
@ActiveProfiles("test")
class MocoHttpServerStubSpec extends Specification {