From 185625ef92e7c2991030d5db35ca5904d88ba922 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Thu, 1 Mar 2018 20:16:37 +0300 Subject: server: fix rss content type --- juick-server/src/test/java/com/juick/server/tests/ServerTests.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'juick-server/src/test/java/com/juick/server/tests') diff --git a/juick-server/src/test/java/com/juick/server/tests/ServerTests.java b/juick-server/src/test/java/com/juick/server/tests/ServerTests.java index 4496f68c..ecb06d45 100644 --- a/juick-server/src/test/java/com/juick/server/tests/ServerTests.java +++ b/juick-server/src/test/java/com/juick/server/tests/ServerTests.java @@ -68,7 +68,6 @@ import java.util.stream.IntStream; import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.Matchers.*; import static org.junit.Assert.assertEquals; -import static org.mockito.Mockito.when; import static org.springframework.security.test.web.servlet.request.SecurityMockMvcRequestPostProcessors.httpBasic; import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.*; import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.*; @@ -352,7 +351,7 @@ public class ServerTests extends AbstractJUnit4SpringContextTests { mockMvc.perform( get("/rss/")) .andExpect(status().isOk()) - .andExpect(content().contentType("application/rss+xml")) + .andExpect(content().contentType("application/rss+xml;charset=UTF-8")) .andExpect(xpath("/rss/channel/description").string("The latest messages at Juick")); } @Test -- cgit v1.2.3