> A more easy sollution is to, in your test, subclass your validator and
> override error() in that and check if that is invoked correctly.
>
This is not possible as all the error methods are final.
Hmm are you sure of that?
http://wicket.sourceforge.net/apidocs/wicket/markup/html/form/validation/AbstractValidator.html#error(wicket.markup.html.form.FormComponent,%20java.lang.String,%20java.util.Map)
shows that at least the error method you are using is not final. (In fact are all the error methods in abstract validator not final)
Frank
------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________ Wicket-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wicket-user
