mirror of
https://github.com/datahub-project/datahub.git
synced 2025-07-25 02:19:58 +00:00

* 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.
22 lines
479 B
Java
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");
|
|
}
|
|
|
|
|
|
}
|