Rob and I were thinking about adding a convenient superclass for MVC
testing after having seen Keith's demo where he used one of those for
testing web flow stuff.
I've added the org.springframework.web.servlet.test package, with an
AbstractModelAndViewTest class that has some convenience methods for
testing the contents of a ModelAndView object (compare a list, compare
the entire model, check the view name, check to see if a model entry
exists, et cetera). I'm looking into adding one of those for the
SimpleFormController as well (checking binding errors et cetera).
Juergen, could you check the package. It's currently in
web.servlet.test, as we might also want one of these for the Portlet
support.
cheers,
-a
|