From 6fde504a635003be6be8817fcbf99105bf169b3a Mon Sep 17 00:00:00 2001 From: Sebastien Deleuze Date: Tue, 1 Mar 2016 15:05:22 +0100 Subject: [PATCH] Fix failing Content-Type related test after SPR-13631 changes --- .../secure/oauth2/SampleSecureOAuth2ApplicationTests.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-boot-samples/spring-boot-sample-secure-oauth2/src/test/java/sample/secure/oauth2/SampleSecureOAuth2ApplicationTests.java b/spring-boot-samples/spring-boot-sample-secure-oauth2/src/test/java/sample/secure/oauth2/SampleSecureOAuth2ApplicationTests.java index bef449a0af..f9726c62ab 100644 --- a/spring-boot-samples/spring-boot-sample-secure-oauth2/src/test/java/sample/secure/oauth2/SampleSecureOAuth2ApplicationTests.java +++ b/spring-boot-samples/spring-boot-sample-secure-oauth2/src/test/java/sample/secure/oauth2/SampleSecureOAuth2ApplicationTests.java @@ -108,7 +108,7 @@ public class SampleSecureOAuth2ApplicationTests { .perform(get("/flights/1").accept(MediaTypes.HAL_JSON) .header("Authorization", "Bearer " + accessToken)) .andExpect( - header().string("Content-Type", MediaTypes.HAL_JSON.toString())) + header().string("Content-Type", MediaTypes.HAL_JSON.toString() + ";charset=UTF-8")) .andExpect(status().isOk()).andDo(print()).andReturn(); Flight flight = this.objectMapper.readValue(