mirror of
https://github.com/Alfresco/alfresco-transform-core.git
synced 2025-05-12 17:04:48 +00:00
Bump spring-boot-starter-parent from 2.1.8.RELEASE to 2.2.1.RELEASE (#155)
- fix tests
This commit is contained in:
parent
addcba9652
commit
a491270375
@ -35,7 +35,6 @@ import static org.springframework.http.HttpHeaders.CONTENT_TYPE;
|
|||||||
import static org.springframework.http.HttpStatus.BAD_REQUEST;
|
import static org.springframework.http.HttpStatus.BAD_REQUEST;
|
||||||
import static org.springframework.http.HttpStatus.INTERNAL_SERVER_ERROR;
|
import static org.springframework.http.HttpStatus.INTERNAL_SERVER_ERROR;
|
||||||
import static org.springframework.http.HttpStatus.OK;
|
import static org.springframework.http.HttpStatus.OK;
|
||||||
import static org.springframework.http.MediaType.APPLICATION_JSON_UTF8_VALUE;
|
|
||||||
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
|
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
|
||||||
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.content;
|
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.content;
|
||||||
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.header;
|
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.header;
|
||||||
@ -352,7 +351,7 @@ public abstract class AbstractTransformerControllerTest
|
|||||||
String response = mockMvc
|
String response = mockMvc
|
||||||
.perform(MockMvcRequestBuilders.get("/transform/config"))
|
.perform(MockMvcRequestBuilders.get("/transform/config"))
|
||||||
.andExpect(status().is(OK.value()))
|
.andExpect(status().is(OK.value()))
|
||||||
.andExpect(header().string(CONTENT_TYPE, APPLICATION_JSON_UTF8_VALUE))
|
.andExpect(header().string(CONTENT_TYPE, APPLICATION_JSON_VALUE))
|
||||||
.andReturn().getResponse().getContentAsString();
|
.andReturn().getResponse().getContentAsString();
|
||||||
|
|
||||||
TransformConfig transformConfig = objectMapper.readValue(response, TransformConfig.class);
|
TransformConfig transformConfig = objectMapper.readValue(response, TransformConfig.class);
|
||||||
@ -371,7 +370,7 @@ public abstract class AbstractTransformerControllerTest
|
|||||||
String response = mockMvc
|
String response = mockMvc
|
||||||
.perform(MockMvcRequestBuilders.get("/transform/config"))
|
.perform(MockMvcRequestBuilders.get("/transform/config"))
|
||||||
.andExpect(status().is(OK.value()))
|
.andExpect(status().is(OK.value()))
|
||||||
.andExpect(header().string(CONTENT_TYPE, APPLICATION_JSON_UTF8_VALUE))
|
.andExpect(header().string(CONTENT_TYPE, APPLICATION_JSON_VALUE))
|
||||||
.andReturn().getResponse().getContentAsString();
|
.andReturn().getResponse().getContentAsString();
|
||||||
|
|
||||||
TransformConfig transformConfig = objectMapper.readValue(response, TransformConfig.class);
|
TransformConfig transformConfig = objectMapper.readValue(response, TransformConfig.class);
|
||||||
@ -398,7 +397,7 @@ public abstract class AbstractTransformerControllerTest
|
|||||||
String response = mockMvc
|
String response = mockMvc
|
||||||
.perform(MockMvcRequestBuilders.get("/transform/config"))
|
.perform(MockMvcRequestBuilders.get("/transform/config"))
|
||||||
.andExpect(status().is(OK.value()))
|
.andExpect(status().is(OK.value()))
|
||||||
.andExpect(header().string(CONTENT_TYPE, APPLICATION_JSON_UTF8_VALUE))
|
.andExpect(header().string(CONTENT_TYPE, APPLICATION_JSON_VALUE))
|
||||||
.andReturn().getResponse().getContentAsString();
|
.andReturn().getResponse().getContentAsString();
|
||||||
|
|
||||||
TransformConfig transformConfig = objectMapper.readValue(response, TransformConfig.class);
|
TransformConfig transformConfig = objectMapper.readValue(response, TransformConfig.class);
|
||||||
@ -421,7 +420,7 @@ public abstract class AbstractTransformerControllerTest
|
|||||||
String response = mockMvc
|
String response = mockMvc
|
||||||
.perform(MockMvcRequestBuilders.get("/transform/config"))
|
.perform(MockMvcRequestBuilders.get("/transform/config"))
|
||||||
.andExpect(status().is(OK.value()))
|
.andExpect(status().is(OK.value()))
|
||||||
.andExpect(header().string(CONTENT_TYPE, APPLICATION_JSON_UTF8_VALUE))
|
.andExpect(header().string(CONTENT_TYPE, APPLICATION_JSON_VALUE))
|
||||||
.andReturn().getResponse().getContentAsString();
|
.andReturn().getResponse().getContentAsString();
|
||||||
|
|
||||||
TransformConfig transformConfig = objectMapper.readValue(response, TransformConfig.class);
|
TransformConfig transformConfig = objectMapper.readValue(response, TransformConfig.class);
|
||||||
|
2
pom.xml
2
pom.xml
@ -5,7 +5,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.springframework.boot</groupId>
|
<groupId>org.springframework.boot</groupId>
|
||||||
<artifactId>spring-boot-starter-parent</artifactId>
|
<artifactId>spring-boot-starter-parent</artifactId>
|
||||||
<version>2.1.8.RELEASE</version>
|
<version>2.2.1.RELEASE</version>
|
||||||
<relativePath />
|
<relativePath />
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user