Frank Bille wrote: > Just of the top of my head I have two surgestions. One is to Do the > full association of the validator to a field which is then associated > with a form and then, using the FormTester, submit the form and check > the messages. > That looks like a bit of overkill. But thanks for the suggestion.
> 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. I solved the problem by extracting my validation code to another method. The only problem with this is that I can not test whether error is called. But that is a very low risk. Thanks, Erik. -- Erik van Oosten http://day-to-day-stuff.blogspot.com/ ------------------------------------------------------------------------- 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 Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user