Fix test when it runs as well

This commit is contained in:
Dave Syer
2016-07-26 15:28:31 +01:00
parent c523a25baa
commit 562717b3d9

View File

@@ -27,9 +27,9 @@ public class WiremockForDocsMockServerApplicationTests {
@Test
public void contextLoads() throws Exception {
// will read stubs from default /resources/stubs location
// will read stubs classpath
MockRestServiceServer server = WireMockRestServiceServer.with(this.restTemplate)
.baseUrl("http://example.org").stubs("resource");
.baseUrl("http://example.org").stubs("classpath:/stubs/resource.json");
// We're asserting if WireMock responded properly
assertThat(this.service.go()).isEqualTo("Hello World");
server.verify();