java - Test CheckBox on NestedTree fails -
i built tree application based on nestedtree example www.wicket-library.com/wicket-examples, i'm struggling @ testing component using wickettester.
with wickettester trigger ajax event on checkbox:
tester.executeajaxevent("path:to:checkbox", "onclick");
the ajaxcheckbox onupdate
event fired well, it's model doesn't change.
a simple page ajaxcheckbox , propertymodel works fine, model changes expected:
add(new ajaxcheckbox("check", new propertymodel<>(this, "checked")));
is impossible test component wickettester?
you'll have set value checkbox, executing click won't send input in request:
formtester.setvalue("path:to:checkbox", true);
Comments
Post a Comment