This commit is contained in:
Marcin Grzejszczak
2016-07-20 19:39:01 +02:00
parent 19092baabd
commit 72e67d6397
45 changed files with 83 additions and 152 deletions

View File

@@ -76,7 +76,7 @@ import io.undertow.Undertow.Builder;
* @author Dave Syer
*
*/
public class SpringBootHttpServerFactory implements HttpServerFactory {
class SpringBootHttpServerFactory implements HttpServerFactory {
@Override
public HttpServer buildHttpServer(Options options,

View File

@@ -31,7 +31,7 @@ import com.github.tomakehurst.wiremock.core.Options;
*
*/
@Configuration
public class WireMockConfiguration implements SmartLifecycle {
class WireMockConfiguration implements SmartLifecycle {
private volatile boolean running;

View File

@@ -16,9 +16,6 @@
package org.springframework.cloud.contract.wiremock;
import static org.springframework.test.web.client.match.MockRestRequestMatchers.requestTo;
import static org.springframework.test.web.client.response.MockRestResponseCreators.withSuccess;
import java.io.IOException;
import java.nio.charset.Charset;
@@ -32,13 +29,16 @@ import org.springframework.web.client.RestTemplate;
import com.github.tomakehurst.wiremock.common.Json;
import com.github.tomakehurst.wiremock.stubbing.StubMapping;
import static org.springframework.test.web.client.match.MockRestRequestMatchers.requestTo;
import static org.springframework.test.web.client.response.MockRestResponseCreators.withSuccess;
/**
* @author Dave Syer
*
*/
public class WireMockExpectations {
private PathMatchingResourcePatternResolver resolver = new PathMatchingResourcePatternResolver();
private final PathMatchingResourcePatternResolver resolver = new PathMatchingResourcePatternResolver();
private String prefix = "classpath:/stubs/";
@@ -85,8 +85,7 @@ public class WireMockExpectations {
}
public static WireMockExpectations with(RestTemplate restTemplate) {
WireMockExpectations result = new WireMockExpectations(restTemplate);
return result;
return new WireMockExpectations(restTemplate);
}
}