Skip to content

Commit c3e18f0

Browse files
committed
fixing tests
1 parent d255ceb commit c3e18f0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

test/ApplicationTest.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ public void simpleCheck() {
3636

3737
@Test
3838
public void renderTemplate() {
39-
Content html = views.html.index.render("Your new application is ready.");
39+
Content html = views.html.index.render(null, null, null, null, null, null, null, null);
4040
assertThat(contentType(html)).isEqualTo("text/html");
41-
assertThat(contentAsString(html)).contains("Your new application is ready.");
41+
assertThat(contentAsString(html)).contains("Welcome to media DB");
4242
}
4343

4444

test/IntegrationTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public void test() {
2020
running(testServer(3333, fakeApplication(inMemoryDatabase())), HTMLUNIT, new Callback<TestBrowser>() {
2121
public void invoke(TestBrowser browser) {
2222
browser.goTo("http://localhost:3333");
23-
assertThat(browser.pageSource()).contains("Your new application is ready.");
23+
assertThat(browser.pageSource()).contains("Welcome to media DB");
2424
}
2525
});
2626
}

0 commit comments

Comments
 (0)