We\'re trying to set up Spring-Test-MVC for our Spring-MVC web app. We started out using freemarker and everything was fine. We decided against it though and are now trying
@Biju -- I appreciate this answer and it saved me a trip, and I'm not trying to shoot the messenger here, but I must say for the benefit of anyone on the Spring team who might be motivated to build something better, I'm finding MockMVC to be pretty much an exercise in triviality and futility. First, Spring authentication is not directly supported. OK fair enough if you scout StackOverflow you can find a workaround to that. Then on my own I found that if you have in your spring context configuration, every path you can make up comes back as "OK" even if it should return "notFound". OK, whatever, take that out and let us never speak of it again. :) And now come to find out that MockMVC is really only MockMC -- no view processing takes place. So at the end of the day what this software is good for is testing applications that contain neither security nor views -- which would be, what, exactly, toy JSON applications?
And this is not really an answer, it's a rant, which means now MockMVC is going to cost me StackOverflow reputation too! :) Hulk smash!
[EDIT] -- OK rant aside it does look like there are ways around this. [LATER EDIT] Unfortunately the way around this I found is no longer available.