Examples of assertRenderedPage()


Examples of org.apache.wicket.util.tester.WicketTester.assertRenderedPage()

    tester.startPage(SignOut.class);
    tester.assertRenderedPage(SignOut.class);

    tester.startPage(Home.class);
    tester.assertRenderedPage(SignIn2.class);
  }
}
View Full Code Here

Examples of org.apache.wicket.util.tester.WicketTester.assertRenderedPage()

    tester.getApplication().getSecuritySettings().setAuthorizationStrategy(
      authorizationStrategy);

    tester.startPage(RedirectPage.class);
    tester.assertRenderedPage(LoginPage.class);
  }
}
View Full Code Here

Examples of org.apache.wicket.util.tester.WicketTester.assertRenderedPage()

  {
    // Default Config: parent first header render strategy
    log.error("=== PARENT first header render strategy ===");
    WicketTester tester = new WicketTester();
    tester.startPage(pageClass);
    tester.assertRenderedPage(pageClass);
    tester.assertResultPage(getClass(), filename);

    // child first header render strategy
    log.error("=== CHILD first header render strategy ===");
    System.setProperty("Wicket_HeaderRenderStrategy",
View Full Code Here

Examples of org.apache.wicket.util.tester.WicketTester.assertRenderedPage()

    System.setProperty("Wicket_HeaderRenderStrategy",
      ChildFirstHeaderRenderStrategy.class.getName());
    // tester.getApplication().getApplicationSettings().setHeaderRenderStrategy(
    // new ChildFirstHeaderRenderStrategy());
    tester.startPage(pageClass);
    tester.assertRenderedPage(pageClass);
    tester.assertResultPage(getClass(), filename + "_2");
    System.setProperty("Wicket_HeaderRenderStrategy", "");
  }
}
View Full Code Here

Examples of org.apache.wicket.util.tester.WicketTester.assertRenderedPage()

    tester.assertLabel("guessesRemaining", "4");
    clickLetter(tester, 'a');
    clickLetter(tester, 'n');
    clickLetter(tester, 'g');
    clickLetter(tester, 'm');
    tester.assertRenderedPage(Win.class);
  }

  /**
   * Tests the webapplication for an unsuccessful match.
   */
 
View Full Code Here

Examples of org.apache.wicket.util.tester.WicketTester.assertRenderedPage()

    clickLetter(tester, 't');
    tester.assertLabel("guessesRemaining", "2");
    clickLetter(tester, 'x');
    tester.assertLabel("guessesRemaining", "1");
    clickLetter(tester, 'z');
    tester.assertRenderedPage(Lose.class);
  }

  /**
   * Performs a guess.
   *
 
View Full Code Here

Examples of org.apache.wicket.util.tester.WicketTester.assertRenderedPage()

    });

    try
    {
      tester.startPage(LOGIN);
      tester.assertRenderedPage(LOGIN);
      FormTester form = tester.newFormTester("signInPanel:signInForm");
      form.setValue("username", "test");
      form.setValue("password", "test");
      form.submit();
      tester.assertRenderedPage(HOME);
View Full Code Here

Examples of org.apache.wicket.util.tester.WicketTester.assertRenderedPage()

      tester.assertRenderedPage(LOGIN);
      FormTester form = tester.newFormTester("signInPanel:signInForm");
      form.setValue("username", "test");
      form.setValue("password", "test");
      form.submit();
      tester.assertRenderedPage(HOME);
    }
    finally
    {
      tester.destroy();
    }
View Full Code Here

Examples of org.apache.wicket.util.tester.WicketTester.assertRenderedPage()

  {
    WicketTester tester = new WicketTester();
    tester.getApplication().getSecuritySettings().setAuthorizationStrategy(
      new RoleAuthorizationStrategy(new UserRolesAuthorizer("ADMIN")));
    tester.startPage(AdminPage.class);
    tester.assertRenderedPage(AdminPage.class);
  }

  /**
   * @throws Exception
   */
 
View Full Code Here

Examples of org.apache.wicket.util.tester.WicketTester.assertRenderedPage()

    doc = tester.getLastResponse().getDocument();
    tester.assertContains("Template example, page 1 - page inheritance");
    tester.assertContains("This is some concrete content from a panel.");

    tester.startPage(org.apache.wicket.examples.template.border.Page1.class);
    tester.assertRenderedPage(org.apache.wicket.examples.template.border.Page1.class);
    doc = tester.getLastResponse().getDocument();
    tester.assertContains("Template example, page 1 - border");
    tester.assertContains("contents here");
  }
}
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.