mirror of
https://github.com/spring-cloud/spring-cloud-netflix.git
synced 2026-10-05 11:09:00 +00:00
Updates contract version to 2.0.1.RELEASE
This commit is contained in:
@@ -26,7 +26,7 @@
|
||||
<spring-cloud-config.version>2.1.0.BUILD-SNAPSHOT</spring-cloud-config.version>
|
||||
<spring-cloud-stream.version>Fishtown.BUILD-SNAPSHOT</spring-cloud-stream.version>
|
||||
<!-- Has to be a stable version (not one that depends on this version of netflix): -->
|
||||
<donotreplacespring-cloud-contract.version>1.2.4.RELEASE</donotreplacespring-cloud-contract.version>
|
||||
<donotreplacespring-cloud-contract.version>2.0.1.RELEASE</donotreplacespring-cloud-contract.version>
|
||||
|
||||
<!-- Plugin versions -->
|
||||
<maven-compiler-plugin.version>3.6.1</maven-compiler-plugin.version>
|
||||
|
||||
+16
@@ -47,6 +47,7 @@ import io.restassured.specification.FilterableResponseSpecification;
|
||||
import org.springframework.util.Base64Utils;
|
||||
import org.springframework.util.ObjectUtils;
|
||||
import org.springframework.util.StringUtils;
|
||||
import org.springframework.web.util.UriComponentsBuilder;
|
||||
import wiremock.com.google.common.base.Optional;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
@@ -209,6 +210,21 @@ class WireMockRestAssuredRequestAdapter implements Request {
|
||||
return Optional.of(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getScheme() {
|
||||
return UriComponentsBuilder.fromUriString(request.getURI()).build().getScheme();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getHost() {
|
||||
return UriComponentsBuilder.fromUriString(request.getURI()).build().getHost();
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getPort() {
|
||||
return request.getPort();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getUrl() {
|
||||
return request.getDerivedPath();
|
||||
|
||||
Reference in New Issue
Block a user