Bumped WireMock to 2.23.2 jre8
fixes gh-943
This commit is contained in:
@@ -50,7 +50,7 @@
|
||||
|
||||
<dependency>
|
||||
<groupId>com.github.tomakehurst</groupId>
|
||||
<artifactId>wiremock-standalone</artifactId>
|
||||
<artifactId>wiremock-jre8-standalone</artifactId>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user