datahub/web/test/ApplicationTest.java
Mars Lan bcc3cd9f76 Make unit tests buildable again for backend and web (#325)
* Make unit tests buildable again for backend and web.

* Add back fest dependency so the tests can stay more of less the same as before.
2017-07-10 09:53:28 -07:00

22 lines
479 B
Java

import org.junit.*;
import play.twirl.api.Content;
import static play.test.Helpers.*;
import static org.fest.assertions.api.Assertions.*;
public class ApplicationTest {
private static String TEST_USER = "test";
private static String FAKE_CSRF_TOKEN = "token";
@Test
public void renderTemplate() {
Content html = views.html.index.render(TEST_USER, FAKE_CSRF_TOKEN, true, 1234);
assertThat(contentType(html)).isEqualTo("text/html");
}
}