I have begun extending the WicketTester to ease the testing of AJAX enabled Wicket applications
My first [patch][revision] extends the clickLink method into accepting clicks on
an AjaxLink. The method then invokes the onClick method on the AjaxLink.

This is a good way to simulate that a user clicks on an AjaxLink. At [Avaleo][avaleo] we use this
method a lot when testing that the flow is correct etc.

The next patch is going to be about actually testing that a component is added to an AjaxRequestTarget
when an AjaxEvent is fired. More on that later…

[revision]: http://svn.sourceforge.net/viewcvs.cgi/wicket?rev=6254&view=rev
[avaleo]: http://www.avaleo.net/

Post a Comment

*
*