minimized local MockServletContext dependencies
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1096 50f2f4bb-b051-0410-bef5-90022cba6387
This commit is contained in:
parent
4a16bf7d5d
commit
a5eb3d592d
|
|
@ -245,10 +245,7 @@ public class MockServletContext implements ServletContext {
|
|||
}
|
||||
|
||||
public RequestDispatcher getRequestDispatcher(String path) {
|
||||
if (!path.startsWith("/")) {
|
||||
throw new IllegalArgumentException("RequestDispatcher path at ServletContext level must start with '/'");
|
||||
}
|
||||
return new MockRequestDispatcher(path);
|
||||
return null;
|
||||
}
|
||||
|
||||
public RequestDispatcher getNamedDispatcher(String path) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue