Bumped WireMock to 2.18.0; fixes gh-659
This commit is contained in:
@@ -7,6 +7,7 @@ import java.util.UUID;
|
||||
import com.github.tomakehurst.wiremock.client.BasicCredentials;
|
||||
import com.github.tomakehurst.wiremock.client.ResponseDefinitionBuilder;
|
||||
import com.github.tomakehurst.wiremock.client.ScenarioMappingBuilder;
|
||||
import com.github.tomakehurst.wiremock.common.Metadata;
|
||||
import com.github.tomakehurst.wiremock.extension.Parameters;
|
||||
import com.github.tomakehurst.wiremock.http.Request;
|
||||
import com.github.tomakehurst.wiremock.http.RequestMethod;
|
||||
@@ -142,6 +143,18 @@ class BasicMappingBuilder implements ScenarioMappingBuilder {
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override public ScenarioMappingBuilder withMetadata(Map<String, ?> map) {
|
||||
throw new UnsupportedOperationException("Metadata not supported");
|
||||
}
|
||||
|
||||
@Override public ScenarioMappingBuilder withMetadata(Metadata metadata) {
|
||||
throw new UnsupportedOperationException("Metadata not supported");
|
||||
}
|
||||
|
||||
@Override public ScenarioMappingBuilder withMetadata(Metadata.Builder builder) {
|
||||
throw new UnsupportedOperationException("Metadata not supported");
|
||||
}
|
||||
|
||||
@Override public StubMapping build() {
|
||||
if (this.scenarioName == null && (this.requiredScenarioState != null
|
||||
|| this.newScenarioState != null)) {
|
||||
|
||||
@@ -131,6 +131,18 @@ class WireMockHttpRequestAdapter implements Request {
|
||||
return new RequestMethod(this.result.getMethod().name());
|
||||
}
|
||||
|
||||
@Override public String getScheme() {
|
||||
return this.result.getUrl().getScheme();
|
||||
}
|
||||
|
||||
@Override public String getHost() {
|
||||
return this.result.getUrl().getHost();
|
||||
}
|
||||
|
||||
@Override public int getPort() {
|
||||
return this.result.getUrl().getPort();
|
||||
}
|
||||
|
||||
@Override public String getClientIp() {
|
||||
return "127.0.0.1";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user