Manfred Bergmann
2018-09-29 15:01:59 UTC
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
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