Permalink
Browse files

added Application controller test

  • Loading branch information...
1 parent aa4997b commit d879e60945dc6e21b01f4c03d94d5eb3c7be0550 @jamesward committed Apr 1, 2015
Showing with 9 additions and 0 deletions.
  1. +9 −0 test/ApplicationTest.java
@@ -41,4 +41,13 @@ public void renderTemplate() {
assertThat(contentAsString(html)).contains("hello, world");
}
+ @Test
+ public void testIndex() {
+ Result result = controllers.Application.index();
+ assertThat(status(result)).isEqualTo(OK);
+ assertThat(contentType(result)).isEqualTo("text/html");
+ assertThat(charset(result)).isEqualTo("utf-8");
+ assertThat(contentAsString(result)).contains("hello, world");
+ }
+
}

0 comments on commit d879e60

Please sign in to comment.