|
Unit Test has been edited by Nino Martinez (Nov 09, 2007). Content:Unit TestUnit testining with wicket are done by mocking the application. This means that you do not have a webserver running. This section will be about how to get started using unit testing with wickets testing framework. Simple examplepublic class AgencyPageTest extends TestCase { public void testBasicRender() { WicketTester tester=new WicketTester(); tester.startPage(myPage.class); tester.assertRenderedPage(myPage.class); } } Above example makes sure that your myPage can render. This itself is a very powerfull test. And should be a minimum of test on all your pages (in this authors opinion). More examples to come.... |
Powered by
Atlassian Confluence
(Version: 2.2.9 Build:#527 Sep 07, 2006)
-
Bug/feature request
Unsubscribe or edit your notifications preferences
Unsubscribe or edit your notifications preferences
