Move routing-in-play -> play-framework

This commit is contained in:
Grzegorz Piwowarek
2016-10-24 09:44:21 +02:00
parent bc290f1166
commit 75d86610ff
57 changed files with 0 additions and 0 deletions
@@ -0,0 +1,25 @@
import org.junit.*;
import play.mvc.*;
import play.test.*;
import static play.test.Helpers.*;
import static org.junit.Assert.*;
import static org.fluentlenium.core.filter.FilterConstructor.*;
public class IntegrationTest {
/**
* add your integration test here
* in this example we just check if the welcome page is being shown
*/
@Test
public void test() {
running(testServer(3333, fakeApplication(inMemoryDatabase())), HTMLUNIT, browser -> {
browser.goTo("http://localhost:3333");
assertTrue(browser.pageSource().contains("Your new application is ready."));
});
}
}