Hi,

See how org.apache.wicket.util.tester.FormTester#select() does it.
You need to do tester.invokeListener(component,
IOnChangeListener.INTERFACE);

Martin Grigorov
Wicket Training and Consulting


On Tue, Mar 25, 2014 at 8:37 PM, jchappelle <jchappe...@4redi.com> wrote:

> I have a DropDownChoice that is not within a Form and I'm trying to write a
> test that selects an item in that DropDownChoice. I have been trying to use
> WicketTester.executeUrl and give it the url in the onchange attribute of
> the
> DropDownChoice but I'm not having any luck. Even if I do get that to work,
> it requires me duplicating the logic of how wicket generates that url,
> which
> means my code could break if wicket changes this.
>
> Does anyone know of a good way to do this?
>
> Thanks!
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Testing-a-DropDownChoice-without-a-Form-with-wantOnSelectionChangedNotifications-true-tp4665121.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

Reply via email to