| |
|
| java.lang.Object org.springframework.mock.web.MockServletConfig
MockServletConfig | public class MockServletConfig implements ServletConfig(Code) | | Mock implementation of the
javax.servlet.ServletConfig interface.
Used for testing the web framework; typically not necessary for
testing application controllers.
author: Rod Johnson author: Juergen Hoeller since: 1.0.2 |
MockServletConfig | public MockServletConfig(String servletName)(Code) | | Create a new MockServletConfig with a default
MockServletContext .
Parameters: servletName - the name of the servlet |
MockServletConfig | public MockServletConfig(ServletContext servletContext)(Code) | | Create a new MockServletConfig.
Parameters: servletContext - the ServletContext that the servlet runs in |
MockServletConfig | public MockServletConfig(ServletContext servletContext, String servletName)(Code) | | Create a new MockServletConfig.
Parameters: servletContext - the ServletContext that the servlet runs in Parameters: servletName - the name of the servlet |
|
|
|