Testing a DropDownChoice without a Form with wantOnSelectionChangedNotifications=true

2014-03-25 Thread jchappelle
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

Re: Testing a DropDownChoice without a Form with wantOnSelectionChangedNotifications=true

2014-03-25 Thread Martin Grigorov
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