datahub/web/test/ApplicationTest.java

19 lines
438 B
Java
Raw Normal View History

2015-11-19 14:39:21 -08:00
import org.junit.*;
import play.twirl.api.Content;
2015-11-19 14:39:21 -08:00
import static play.test.Helpers.*;
import static org.fest.assertions.api.Assertions.*;
2015-11-19 14:39:21 -08:00
public class ApplicationTest {
private static String TEST_USER = "test";
private static String FAKE_CSRF_TOKEN = "token";
@Test
public void renderTemplate() {
2017-03-29 10:33:53 -07:00
Content html = views.html.index.render();
2015-11-19 14:39:21 -08:00
assertThat(contentType(html)).isEqualTo("text/html");
}
}