You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by shetc <sh...@bellsouth.net> on 2010/03/04 16:45:03 UTC

Re: Wicket tests without FormTester

I am trying to unit test a DropDownChoice that is not part of a form and does
not use AJAX.
I have tried something like:

wicketTester.getServletRequest().setParameter(ddc.getInputName(), "0");
wicketTester.executeListener(ddc);

which causes the DropDownChoice model to fire its setObject method but
its input object is always null.

Any ideas on the best way to do this testing?

Thanks.

-- 
View this message in context: http://old.nabble.com/Wicket-tests-without-FormTester-tp22609725p27782522.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org