Examples of dumpPage()


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

  public void testLabelWithinEnclosure_Invisible() throws Exception
  {
    WicketTester tester = new WicketTester();
    tester.startPage(new LabelWithinEnclosurePage(false));
    tester.dumpPage();
    tester.assertContainsNot("label");
    tester.assertContains("<wicket:enclosure child=\"textfield\"></wicket:enclosure>");
  }

View Full Code Here

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

  public void testWithoutAutolabel() throws Exception
  {
    WicketTester tester = new WicketTester();
    tester.startPage(new PickUpLabelPage(null));
    tester.dumpPage();
    tester.assertContains("<label>label from markup without autolabel</label>");
    assertEquals(
      "label from markup without autolabel",
      ((FormComponent)tester.getComponentFromLastRenderedPage("form:inputWithoutAutolabel")).getLabel()
        .getObject());
View Full Code Here

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

  public void testVelocityPanel()
  {
    WicketTester tester = new WicketTester();
    tester.startPage(VelocityPage.class);
    tester.assertContains(VelocityPage.TEST_STRING);
    tester.dumpPage();
  }

  /**
   * Test with Wicket markup parsing
   */
 
View Full Code Here

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

  public void testVelocityPanelWithMarkupParsing()
  {
    WicketTester tester = new WicketTester();
    tester.startPage(VelocityWithMarkupParsingPage.class);
    tester.assertLabel("velocityPanel:message", VelocityPage.TEST_STRING);
    tester.dumpPage();
  }
}
View Full Code Here

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

  {
    WicketTester tester = new WicketTester();
    tester.startPage(VelocityJavaScriptPage.class);
    System.out.println(tester.getLastResponseAsString());
    tester.assertContains("msg1: " + VelocityJavaScriptPage.MSG1);
    tester.dumpPage();
    tester.destroy();
  }
}
View Full Code Here

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

   */
  public void testVelocityPanel() {
    WicketTester tester = new WicketTester();
    tester.startPage(VelocityPage.class);
    tester.assertContains(VelocityPage.TEST_STRING);
    tester.dumpPage();
  }

  /**
   * Test with Wicket markup parsing
   */
 
View Full Code Here

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

   */
  public void testVelocityPanelWithMarkupParsing() {
    WicketTester tester = new WicketTester();
    tester.startPage(VelocityWithMarkupParsingPage.class);
    tester.assertLabel("velocityPanel:message", VelocityPage.TEST_STRING);
    tester.dumpPage();
  }
}
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.