aboutsummaryrefslogtreecommitdiff
path: root/juick-rss/src/test/java/com
diff options
context:
space:
mode:
Diffstat (limited to 'juick-rss/src/test/java/com')
-rw-r--r--juick-rss/src/test/java/com/juick/rss/tests/RSSTests.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/juick-rss/src/test/java/com/juick/rss/tests/RSSTests.java b/juick-rss/src/test/java/com/juick/rss/tests/RSSTests.java
index 8f10f9c3..a9ac848c 100644
--- a/juick-rss/src/test/java/com/juick/rss/tests/RSSTests.java
+++ b/juick-rss/src/test/java/com/juick/rss/tests/RSSTests.java
@@ -18,7 +18,6 @@ import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import org.springframework.context.annotation.Primary;
-import org.springframework.http.MediaType;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import org.springframework.test.context.web.WebAppConfiguration;
@@ -36,6 +35,7 @@ import static org.mockito.Mockito.when;
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.content;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;
+import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.xpath;
/**
* Created by vitalyster on 13.12.2016.
@@ -143,6 +143,7 @@ public class RSSTests {
mockMvc.perform(
get("/"))
.andExpect(status().isOk())
- .andExpect(content().contentType("application/rss+xml"));
+ .andExpect(content().contentType("application/rss+xml"))
+ .andExpect(xpath("/rss/channel/description").string("The latest messages at Juick"));
}
}