Bumped WireMock to 2.23.2 jre8

fixes gh-943
This commit is contained in:
Marcin Grzejszczak
2019-04-16 10:25:36 +04:00
parent 42a2d1dfb1
commit d82afd5a24
7 changed files with 8 additions and 8 deletions

View File

@@ -50,7 +50,7 @@
<dependency>
<groupId>com.github.tomakehurst</groupId>
<artifactId>wiremock-standalone</artifactId>
<artifactId>wiremock-jre8-standalone</artifactId>
<scope>test</scope>
</dependency>
<dependency>

View File

@@ -15,7 +15,7 @@
<name>spring-cloud-contract-dependencies</name>
<description>Spring Cloud Contract Dependencies</description>
<properties>
<wiremock.version>2.20.0</wiremock.version>
<wiremock.version>2.23.2</wiremock.version>
<jsonassert.version>0.4.13</jsonassert.version>
<rest-assured.version>3.2.0</rest-assured.version>
<maven.version>3.3.9</maven.version>
@@ -89,7 +89,7 @@
</dependency>
<dependency>
<groupId>com.github.tomakehurst</groupId>
<artifactId>wiremock-standalone</artifactId>
<artifactId>wiremock-jre8-standalone</artifactId>
<version>${wiremock.version}</version>
</dependency>
<dependency>

View File

@@ -40,7 +40,7 @@
</dependency>
<dependency>
<groupId>com.github.tomakehurst</groupId>
<artifactId>wiremock-standalone</artifactId>
<artifactId>wiremock-jre8-standalone</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>

View File

@@ -1008,7 +1008,7 @@ class DslToWireMockClientConverterSpec extends Specification {
.header("Content-Type", "application/json")
.body('''{"email":"abc@abc.com", "callback_url":"https://partners.com"}''')
, String)
response.headers.get('Content-Type') == ['application/json;charset=UTF-8']
response.headers.get('Content-Type') == ['application/json;charset=utf-8']
response.statusCodeValue == 400
JSONAssert.assertEquals('''{"message":"[8.2 Profile/3.7 Bad Request]"}"''', response.body, false)
}

View File

@@ -67,7 +67,7 @@
</dependency>
<dependency>
<groupId>com.github.tomakehurst</groupId>
<artifactId>wiremock-standalone</artifactId>
<artifactId>wiremock-jre8-standalone</artifactId>
</dependency>
<dependency>
<groupId>com.toomuchcoding.jsonassert</groupId>

View File

@@ -26,7 +26,7 @@
<dependencies>
<dependency>
<groupId>com.github.tomakehurst</groupId>
<artifactId>wiremock-standalone</artifactId>
<artifactId>wiremock-jre8-standalone</artifactId>
</dependency>
<dependency>
<groupId>io.rest-assured</groupId>

View File

@@ -263,7 +263,7 @@ class WireMockHttpRequestAdapter implements Request {
.request(this.result.getMethod(), this.result.getUriTemplate())
.contentType(this.result.getRequestHeaders().getContentType())
.content(this.result.getRequestBodyContent())
.buildRequest(new ContextHandler.NoContext());
.buildRequest(new ContextHandler.StaticContext());
try {
return new StandardMultipartHttpServletRequest(request).getParts().stream()
.map(part -> partFromServletPart(part)).collect(Collectors.toList());