test/test/IntegrationTest.java
/**
   * Check to see that both the home and contact pages can be retrieved.
   */
Check to see that both the home and contact pages can be retrieved.
Check to see that both the home and contact pages can be retrieved .
@Test
  public void test() {
    running(testServer(3333, fakeApplication(inMemoryDatabase())), HTMLUNIT, new Callback<TestBrowser>() {
      public void invoke(TestBrowser browser) {
        browser.goTo("http://localhost:3333");
        assertThat(browser.pageSource()).contains("Current");
        browser.goTo("http://localhost:3333/newcontact");
        assertThat(browser.pageSource()).contains("First");
      }
    });
  }
@ Test public void test ( ) { running ( testServer ( 3333 , fakeApplication ( inMemoryDatabase ( ) ) ) , HTMLUNIT , new Callback < TestBrowser > ( ) { public void invoke ( TestBrowser browser ) { browser . goTo ( "http://localhost:3333" ) ; assertThat ( browser . pageSource ( ) ) . contains ( "Current" ) ; browser . goTo ( "http://localhost:3333/newcontact" ) ; assertThat ( browser . pageSource ( ) ) . contains ( "First" ) ; } } ) ; }
Check to see that both the home and contact pages can be retrieved.
Check to see that both the home and contact pages can be retrieved .