MockServletContext()
Create a new MockServletContext, using no base path and a DefaultResourceLoader (i.e. the classpath root as WAR root).
See Also
org.springframework.core.io.DefaultResourceLoader
MockServletContext(resourceBasePath: String)
Create a new MockServletContext, using a DefaultResourceLoader.
resourceBasePath - the root directory of the WAR (should not end with a slash)
See Also
org.springframework.core.io.DefaultResourceLoader
MockServletContext(@Nullable resourceLoader: ResourceLoader)
Create a new MockServletContext, using the specified ResourceLoader and no base path.
resourceLoader - the ResourceLoader to use (or null for the default)
MockServletContext(resourceBasePath: String, @Nullable resourceLoader: ResourceLoader)
Create a new MockServletContext using the supplied resource base path and resource loader.
Registers a MockRequestDispatcher for the Servlet named 'default'.
resourceBasePath - the root directory of the WAR (should not end with a slash)
resourceLoader - the ResourceLoader to use (or null for the default)
See Also
#registerNamedDispatcher