Upgrade to Spring Boot 2.2.0.RELEASE

This commit is contained in:
Stephane Nicoll 2019-10-20 16:40:04 +02:00
parent f284b29501
commit ce7c3f93de
2 changed files with 3 additions and 3 deletions

View file

@ -5,12 +5,12 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.springframework.samples</groupId>
<artifactId>spring-petclinic</artifactId>
<version>2.1.0.BUILD-SNAPSHOT</version>
<version>2.2.0.BUILD-SNAPSHOT</version>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.1.9.RELEASE</version>
<version>2.2.0.RELEASE</version>
</parent>
<name>petclinic</name>

View file

@ -78,7 +78,7 @@ public class VetControllerTests {
public void testShowResourcesVetList() throws Exception {
ResultActions actions = mockMvc.perform(get("/vets")
.accept(MediaType.APPLICATION_JSON)).andExpect(status().isOk());
actions.andExpect(content().contentType("application/json;charset=UTF-8"))
actions.andExpect(content().contentType(MediaType.APPLICATION_JSON))
.andExpect(jsonPath("$.vetList[0].id").value(1));
}