Hi,

AjaxTabbedPanel uses JavaScript (Ajax) to switch from tab to tab.
You can simulate this in WicketTester by calling the Ajax behaviors directly.
See 
http://svn.apache.org/viewvc/wicket/trunk/wicket-core/src/test/java/org/apache/wicket/ajax/AjaxTimerBehaviorTest.java?view=markup&pathrev=1221291
method #testRestartMethod() to see how we do that for AbstractAjaxTimerBehavior.

Also take a look at
org.apache.wicket.extensions.ajax.markup.html.AjaxLazyLoadPanelTester
to see how AjaxLazyLoadPanel is tested.



On Tue, Dec 20, 2011 at 11:38 PM, sudeivas <[email protected]> wrote:
> Hello All,
>          I am using AjaxTabbedPanel in my application and I want to write
> unit tests for that. But I couldn't find any example tests in Apache Wicket
> - 1.5.3 code.
>
> Please share any sample code to write unit tests for AjaxTabbedPanel.
>
>
> Thanks,
> Suresh
>
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/Unit-Testing-AjaxTabbedPanel-tp4219476p4219476.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to