removed now obsolete test case

This commit is contained in:
Keith Donald 2009-11-26 08:39:46 +00:00
parent de1d548725
commit 8259d45583
1 changed files with 0 additions and 13 deletions

View File

@ -46,7 +46,6 @@ public class ControllerTests extends TestCase {
String viewName = "viewName";
ParameterizableViewController pvc = new ParameterizableViewController();
pvc.setViewName(viewName);
pvc.initApplicationContext();
// We don't care about the params.
ModelAndView mv = pvc.handleRequest(new MockHttpServletRequest("GET", "foo.html"), null);
assertTrue("model has no data", mv.getModel().size() == 0);
@ -54,18 +53,6 @@ public class ControllerTests extends TestCase {
assertTrue("getViewName matches", pvc.getViewName().equals(viewName));
}
public void testParameterizableViewControllerWithPropertyNotSet() {
ParameterizableViewController pvc = new ParameterizableViewController();
try {
pvc.initApplicationContext();
fail("should require viewName property to be set");
}
catch (IllegalArgumentException ex){
// expected
assertTrue("meaningful exception message", ex.getMessage().indexOf("viewName") != -1);
}
}
public void testServletForwardingController() throws Exception {
ServletForwardingController sfc = new ServletForwardingController();
sfc.setServletName("action");