I need to write the jUnittest case for it, problem is i am struggling to get BindingResult result instance.
Is there any better way to do Spring MVC jUnit test, i was looking for mocking library, but yet not got any better answer.
I have used spring but not annotation based.
Can you give some light what is BindingResult
Praveen Kumar Singh
Joined: Mar 04, 2009
BindingResult holds all errors detail
Flow is like, when you submit the form, you always connect it with a bean, now in sprng 3 we can actually put the annotation on beans for validation purpose
like, size of name, min and max value of int and so on
If validation failure happens, all failure information you can retrieve by BindingResult