Your test looks pretty much
like org.apache.wicket.FormDispatchEventTest#dropDownEvent() in
wicket-core/src/test/java
FormDispatchEventTest#dropDownEvent() passes OK.


On Wed, Jan 16, 2013 at 10:20 AM, RalfButler <[email protected]> wrote:

> Thanks a lot Martin for that super quick reply! Yes, obviously I was wrong
> on
> the AJAX part.
>
> But even if I using the test method like this:
> @Test
>     public void enterData(){
>
>         tester.startPage(MyForm.class);
>         FormTester formTester = tester.newFormTester("form");
>         formTester.setValue("textfield", "Hello World!");
>         formTester.select("dropdown", 1);
>
>         formTester.submit();
>
>         tester.assertNoErrorMessage();
>
>         tester.assertRenderedPage(HomePage.class);
>     }
>
> ... I still receive the error. I'd really love to understand what I'm
> missing here.
>
> Thanks,
> Ralf
>
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Testing-DropDownChoice-with-Ajax-tp4655418p4655421.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 <http://jweekend.com/>

Reply via email to