Package org.apache.wicket.util.tester

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


    tester.startPage(Home.class, new PageParameters().set("word", "hangman"));
    tester.assertComponent("start", Link.class);
    tester.assertContains("Wicket Examples - hangman");
    tester.clickLink("start");
    tester.assertLabel("guessesRemaining", "5");
    clickLetter(tester, 'f');
    tester.assertLabel("guessesRemaining", "4");
    clickLetter(tester, 'h');
    tester.assertLabel("guessesRemaining", "4");
    clickLetter(tester, 'a');
View Full Code Here


    tester.assertComponent("start", Link.class);
    tester.assertContains("Wicket Examples - hangman");
    tester.clickLink("start");
    tester.assertLabel("guessesRemaining", "5");
    clickLetter(tester, 'f');
    tester.assertLabel("guessesRemaining", "4");
    clickLetter(tester, 'h');
    tester.assertLabel("guessesRemaining", "4");
    clickLetter(tester, 'a');
    clickLetter(tester, 'n');
    clickLetter(tester, 'g');
View Full Code Here

    tester.clickLink("start");
    tester.assertLabel("guessesRemaining", "5");
    clickLetter(tester, 'f');
    tester.assertLabel("guessesRemaining", "4");
    clickLetter(tester, 'h');
    tester.assertLabel("guessesRemaining", "4");
    clickLetter(tester, 'a');
    clickLetter(tester, 'n');
    clickLetter(tester, 'g');
    clickLetter(tester, 'm');
    tester.assertRenderedPage(Win.class);
View Full Code Here

    tester.startPage(Home.class, new PageParameters().set("word", "hangman"));
    tester.assertComponent("start", Link.class);
    tester.assertContains("Wicket Examples - hangman");
    tester.clickLink("start");
    tester.assertLabel("guessesRemaining", "5");
    clickLetter(tester, 'f');
    tester.assertLabel("guessesRemaining", "4");
    clickLetter(tester, 'e');
    tester.assertLabel("guessesRemaining", "3");
    clickLetter(tester, 't');
View Full Code Here

    tester.assertComponent("start", Link.class);
    tester.assertContains("Wicket Examples - hangman");
    tester.clickLink("start");
    tester.assertLabel("guessesRemaining", "5");
    clickLetter(tester, 'f');
    tester.assertLabel("guessesRemaining", "4");
    clickLetter(tester, 'e');
    tester.assertLabel("guessesRemaining", "3");
    clickLetter(tester, 't');
    tester.assertLabel("guessesRemaining", "2");
    clickLetter(tester, 'x');
View Full Code Here

    tester.clickLink("start");
    tester.assertLabel("guessesRemaining", "5");
    clickLetter(tester, 'f');
    tester.assertLabel("guessesRemaining", "4");
    clickLetter(tester, 'e');
    tester.assertLabel("guessesRemaining", "3");
    clickLetter(tester, 't');
    tester.assertLabel("guessesRemaining", "2");
    clickLetter(tester, 'x');
    tester.assertLabel("guessesRemaining", "1");
    clickLetter(tester, 'z');
View Full Code Here

    clickLetter(tester, 'f');
    tester.assertLabel("guessesRemaining", "4");
    clickLetter(tester, 'e');
    tester.assertLabel("guessesRemaining", "3");
    clickLetter(tester, 't');
    tester.assertLabel("guessesRemaining", "2");
    clickLetter(tester, 'x');
    tester.assertLabel("guessesRemaining", "1");
    clickLetter(tester, 'z');
    tester.assertRenderedPage(Lose.class);
    tester.destroy();
View Full Code Here

    clickLetter(tester, 'e');
    tester.assertLabel("guessesRemaining", "3");
    clickLetter(tester, 't');
    tester.assertLabel("guessesRemaining", "2");
    clickLetter(tester, 'x');
    tester.assertLabel("guessesRemaining", "1");
    clickLetter(tester, 'z');
    tester.assertRenderedPage(Lose.class);
    tester.destroy();
  }
View Full Code Here

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

    formTester.setValue("password", "wicket");
    formTester.submit();

    tester.assertRenderedPage(Home.class);
    tester.assertContains("Wicket Examples - library");
    tester.assertLabel("books:0:author", "Effective Java (Joshua Bloch)");
    tester.destroy();
  }
}
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.