Add additional build() step to allow ordered stubs

This commit is contained in:
Dave Syer
2016-07-28 09:32:21 +01:00
parent d82a5917b1
commit bcce5699de
9 changed files with 133 additions and 35 deletions

View File

@@ -28,7 +28,7 @@ public class WiremockMockServerApplicationTests {
public void contextLoads() throws Exception {
MockRestServiceServer server = WireMockRestServiceServer.with(this.restTemplate) //
.baseUrl("http://example.org") //
.stubs("classpath:/stubs");
.stubs("classpath:/stubs").build();
assertThat(this.service.go()).isEqualTo("Hello World");
server.verify();
}