On Tue, 2009-12-01 at 11:44 +0200, Martin Makundi wrote: > > Thanx for your feedback! Did you have a look at http://is.gd/58mq3 which > > shows the test? > > Ofcourse I didn't look ;) > > Now, having looked at it your bug is that FORMTESTER CAN BE SUBMITTED ONLY > ONCE! > > If you want to use it another time, you need to call newFormTester again. Thanx, this fixed the issue!
Now I extended the test to make sure that the previously selected make and model are still selected after the final submit - and this fails with the second drop down (the model): this returns null from dropDown.getDefaultModelObject. I pushed this, so http://is.gd/58mq3 shows these changes. Is there another thing that needs to be changed in the test? Cheers, Martin > > ** > Martin > > > > > >> > >> ** > >> Martin > >> > >> > > >> > This issue was already reported some time ago without a final result: > >> > http://old.nabble.com/unit-test-for-dropdownchoice-with-ajax-td21141772.html > >> > > >> > > >> > I created an example project that shows this issue: > >> > http://github.com/magro/misc/tree/master/wicket-tester-drop-downs/ > >> > > >> > This is the short link to the failing test case (on github): > >> > http://is.gd/58mq3 > >> > This is the tested page class: http://is.gd/58mDm > >> > > >> > I'm using wicket 1.4.3. > >> > > >> > Is there any error in the test? Can I do anything to work around this, > >> > or is it a bug? > >> > > >> > Thanx && cheers, > >> > Martin > >> > > >> > -- > >> > Martin Grotzke > >> > http://www.javakaffee.de/blog/ > >> > > >> > >> --------------------------------------------------------------------- > >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > >> For additional commands, e-mail: users-h...@wicket.apache.org > >> > > -- > > Martin Grotzke > > http://www.javakaffee.de/blog/ > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org >
signature.asc
Description: This is a digitally signed message part