Hi all,
I have a small design problem with annotations and testing.
I am using the @Requestmapping and @Initbinder in my controller object and the name of the function is free then. I have an abstract test case that can test a random controller and tests the output result of it.
But for testing purpose how can i call the function the onSubmit(@RequestMapping) function from my testcase if the name of the function is not known before?
Same problem with the @initBinder. It is not even required to use this in the controller. How can i call them and what if it isn't used.
If the controller extends from SimpleFormController the problem is solved because all function exists with a static name, doesn't matter that the programmer would implements this.
How to solve this for annotations ?
Thanks for looking at this


Reply With Quote
