From 94b5ad0f7e8a9f5ee8a4115bec57876e935b9ae3 Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Thu, 1 Aug 2019 15:32:39 +0100 Subject: [PATCH] Fixup tests following upstream HATEOAS changes See gh-17755 --- .../web/servlet/mockmvc/WebMvcTestHateoasIntegrationTests.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-boot-project/spring-boot-test-autoconfigure/src/test/java/org/springframework/boot/test/autoconfigure/web/servlet/mockmvc/WebMvcTestHateoasIntegrationTests.java b/spring-boot-project/spring-boot-test-autoconfigure/src/test/java/org/springframework/boot/test/autoconfigure/web/servlet/mockmvc/WebMvcTestHateoasIntegrationTests.java index 28b4960172..f22ef521d9 100644 --- a/spring-boot-project/spring-boot-test-autoconfigure/src/test/java/org/springframework/boot/test/autoconfigure/web/servlet/mockmvc/WebMvcTestHateoasIntegrationTests.java +++ b/spring-boot-project/spring-boot-test-autoconfigure/src/test/java/org/springframework/boot/test/autoconfigure/web/servlet/mockmvc/WebMvcTestHateoasIntegrationTests.java @@ -48,7 +48,7 @@ class WebMvcTestHateoasIntegrationTests { @Test void hateoasResponse() throws Exception { this.mockMvc.perform(get("/hateoas/resource")) - .andExpect(header().string(HttpHeaders.CONTENT_TYPE, "application/hal+json;charset=UTF-8")); + .andExpect(header().string(HttpHeaders.CONTENT_TYPE, "application/hal+json")); } }