org.springframework.validation.BindingResult.<parameter name>
FYI, I use this sometimes for testing my controllers with spring-mvc-test to make sure that validation errors are set.
Something like this:
UPDATE:
You can also use the test framework's built in methods to validate if an error exists or doesn't exist.
No comments:
Post a Comment