Package org.apache.wicket.util.tester
A package with utility classes to ease unit testing of Wicket applications without the need for
a servlet container. The only classes required by users to test are WicketTester
and FormTester. WicketTester extends MockWebApplication
and extends it with convenience methods to start (render) a page and to test (assert)
certain conditions.
FormTester is a utility class to make unit testing an HTML form a breeze.
-
Class Summary Class Description BaseWicketTester A helper class to ease unit testing of Wicket applications without the need for a servlet container.BaseWicketTester.StartComponentInPage A page that is used as the automatically created page forBaseWicketTester.startComponentInPage(Class)and the other variations.DiffUtil This is a utility class.DummyHomePage A dummy home page, as required byWicketTester.DummyPanelPage A dummyPanelComponent.FormTester A helper class for testing validation and submission ofFormComponents.Result AResultclass.TagTester Tag tester is used to test that a generated markup tag contains the correct attributes, values etc.WicketTestCase Base class for tests which require comparing wicket response with a file.WicketTester A helper class to ease unit testing of Wicket applications without the need for a servlet container.WicketTesterExtension ManagesWicketTesterinstanceWicketTesterHelper AWicketTester-specific helper class.WicketTesterHelper.ComponentData ComponentDataclass.