aboutsummaryrefslogtreecommitdiff
path: root/juick-www/src/test
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-02-09 00:24:17 +0300
committerGravatar Vitaly Takmazov2018-02-09 00:24:42 +0300
commit515d5a80eb9ace41e1aa94c6f880738efc56e3b9 (patch)
tree55eb4929d42aef12fcee8c4214ccb57ce98c1245 /juick-www/src/test
parent7414f1034d32c249294a081f1e176a9266fc92ac (diff)
www: 404 for non existent blog
Diffstat (limited to 'juick-www/src/test')
-rw-r--r--juick-www/src/test/java/com/juick/www/WebAppTests.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/juick-www/src/test/java/com/juick/www/WebAppTests.java b/juick-www/src/test/java/com/juick/www/WebAppTests.java
index dcbcb66c..01dfcdcb 100644
--- a/juick-www/src/test/java/com/juick/www/WebAppTests.java
+++ b/juick-www/src/test/java/com/juick/www/WebAppTests.java
@@ -325,4 +325,8 @@ public class WebAppTests {
.andExpect(model().attribute("visitor", hasProperty("authHash", equalTo(hash))))
.andExpect(content().string(containsString(hash)));
}
+ @Test
+ public void nonExistentBlogShouldReturn404() throws Exception {
+ mockMvc.perform(get("/ololoe/")).andExpect(status().isNotFound());
+ }
}