If you want to compose test pages "on the fly", you should try also mashupwebpage:
public void testSomeFieldComponent() { Page page = new MashupWebPage(); Form form; page.add(form = new MashUpForm(GID)); FormComponent customField; form.add(customField = new CustomFieldToBeTested(GID)); tester.startPage(page); FormTester formtester = tester.newFormTester(form.getPageRelativePath()); formtester.setValue(getRelativePath(form, customField), "test-value"); formtester.submit(); tester.assertNoErrorMessages(); } http://code.google.com/p/wicket-mashup/ ** Martin 2010/3/27 Kent Tong <k...@cpttm.org.mo>: > Dear all, > > Wicket page test 1.3 is now available. It is a library allowing you > to unit test your Wicket pages easily, supporting AJAX and > Javascript without changes to your pages. > > New features implemented in this version: > > * Provide a generic starter page to launch another page whose > constructor needs some arguments. > * Provide a page navigator to inspect the arguments passed to the > response page. > * Easier way to open a page. > > Get it from maven as described in http://wicketpagetest.sourceforge.net/ > > -- > Author of books for learning CXF, Axis2, Wicket, JSF > (http://www.agileskills2.org) > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org