Hi all,

I'm trying to implement a unit test for a page. The unit testing means I
should test one page only.
Suppose I have a page with a link. When I do

wicketTester.clickLink("myLink");

The WicketTester renders another page, the page rendering requires a lot of
other injected dependencies, and the unit test set-up grows too much
making  the test fragile. I just want to verify that another page is set as
a response page.

Is it possible to do it? What are the best practices for unit testing of a
wicket application?

-- 
WBR, Anatoly.

Reply via email to