diff --git a/src/test/java/de/thm/arsnova/controller/StatisticsControllerTest.java b/src/test/java/de/thm/arsnova/controller/StatisticsControllerTest.java index d2b9f0d9778c481ad286ffd93a3a85b3786c880b..32fd9dad3130714b7eda6684986ea704054ec5eb 100644 --- a/src/test/java/de/thm/arsnova/controller/StatisticsControllerTest.java +++ b/src/test/java/de/thm/arsnova/controller/StatisticsControllerTest.java @@ -64,14 +64,14 @@ public class StatisticsControllerTest { public void testShouldGetCurrentOnlineUsers() throws Exception { mockMvc.perform(get("/statistics/activeusercount").accept(MediaType.TEXT_PLAIN)) .andExpect(status().isOk()) - .andExpect(content().contentType("text/plain")); + .andExpect(content().contentTypeCompatibleWith("text/plain")); } @Test public void testShouldSendXDeprecatedApiForGetCurrentOnlineUsers() throws Exception { mockMvc.perform(get("/statistics/activeusercount").accept(MediaType.TEXT_PLAIN)) .andExpect(status().isOk()) - .andExpect(content().contentType("text/plain")) + .andExpect(content().contentTypeCompatibleWith("text/plain")) .andExpect(header().string(AbstractController.X_DEPRECATED_API,"1")); } @@ -79,7 +79,7 @@ public class StatisticsControllerTest { public void testShouldGetSessionCount() throws Exception { mockMvc.perform(get("/statistics/sessioncount").accept(MediaType.TEXT_PLAIN)) .andExpect(status().isOk()) - .andExpect(content().contentType("text/plain")) + .andExpect(content().contentTypeCompatibleWith("text/plain")) .andExpect(content().string("3")); } @@ -87,7 +87,7 @@ public class StatisticsControllerTest { public void testShouldSendXDeprecatedApiForGetSessionCount() throws Exception { mockMvc.perform(get("/statistics/sessioncount").accept(MediaType.TEXT_PLAIN)) .andExpect(status().isOk()) - .andExpect(content().contentType("text/plain")) + .andExpect(content().contentTypeCompatibleWith("text/plain")) .andExpect(header().string(AbstractController.X_DEPRECATED_API,"1")); }