mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-10-03 05:19:07 +00:00
removed now obsolete test case
This commit is contained in:
-13
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user