From f59fbe6f81996df3541a69a1827c397bbb099886 Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Mon, 30 Oct 2017 17:00:47 +0000 Subject: [PATCH] Update test to align with media type change in HATEOAS 0.24 See gh-10828 --- .../hateoas/HypermediaAutoConfigurationTests.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/hateoas/HypermediaAutoConfigurationTests.java b/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/hateoas/HypermediaAutoConfigurationTests.java index bd950b2ee3..05ee515e61 100644 --- a/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/hateoas/HypermediaAutoConfigurationTests.java +++ b/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/hateoas/HypermediaAutoConfigurationTests.java @@ -140,7 +140,8 @@ public class HypermediaAutoConfigurationTests { for (HttpMessageConverter converter : handlerAdapter.getMessageConverters()) { if (converter instanceof TypeConstrainedMappingJackson2HttpMessageConverter) { assertThat(converter.getSupportedMediaTypes()) - .containsExactly(MediaTypes.HAL_JSON); + .containsExactly(MediaTypes.HAL_JSON, MediaType.parseMediaType( + MediaTypes.HAL_JSON_VALUE + ";charset=UTF-8")); } } }