Hi Manfred,
you probably already migrated from
#wantOnSelectionChangedNotifications() to a FormComponentUpdatingBehavior.
So you have to use that behavior as a listener now:
tester.invokeListener(languageChoice.getBehaviors(FormComponentUpdatingBehavior.class).get(0));
Hope this helps
Sven
Am 29.09.2018 um 17:01 schrieb Manfred Bergmann:
Hi.
We’ve tested Ajax components by code like this in Wicket 7:
val languageChoice =
tester.getComponentFromLastRenderedPage("languageChoice").asInstanceOf[DropDownChoice[Locale]]
tester.getRequest.getPostParameters.setParameterValue(languageChoice.getInputName,
"0")
tester.invokeListener(languageChoice, IOnChangeListener.INTERFACE)
assert(testPage.getLocale == Locales.supportedLocales.head)
In Wicket 8, IOnChangeListener.INTERFACE is not available anymore.
What is the recommended equivalent for this test?
Regards,
Manfred
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org