| org.apache.struts.action.ActionServlet org.apache.struts.mock.MockActionServlet
MockActionServlet | public class MockActionServlet extends ActionServlet (Code) | | Mock ActionServlet object for low-level unit tests of
Struts controller components. Coarser grained tests should be implemented
in terms of the Cactus framework, instead of the mock object classes.
WARNING - Only getter methods for servletContext and
servletConfig are provided, plus additional methods to configure this
object as necessary. Methods for unsupported operations will throw
UnsupportedOperationException .
WARNING - Because unit tests operate in a single
threaded environment, no synchronization is performed.
version: $Rev: 471754 $ $Date: 2005-05-14 02:09:06 -0400 (Sat, 14 May 2005) version: $ |
MockActionServlet | public MockActionServlet()(Code) | | Constructor.
|
initInternal | public void initInternal() throws ServletException(Code) | | Expose as public so that test classes can exercise things which
retrieve messages.
|
setServletConfig | public void setServletConfig(ServletConfig servletConfig)(Code) | | Set property
Parameters: servletConfig - |
setServletContext | public void setServletContext(ServletContext servletContext)(Code) | | Set property
Parameters: servletContext - |
Methods inherited from org.apache.struts.action.ActionServlet | public void addServletMapping(String servletName, String urlPattern)(Code)(Java Doc) public void destroy()(Code)(Java Doc) protected void destroyConfigDigester()(Code)(Java Doc) protected void destroyInternal()(Code)(Java Doc) protected void destroyModules()(Code)(Java Doc) public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException(Code)(Java Doc) public void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException(Code)(Java Doc) public MessageResources getInternal()(Code)(Java Doc) protected ModuleConfig getModuleConfig(HttpServletRequest request)(Code)(Java Doc) protected synchronized RequestProcessor getRequestProcessor(ModuleConfig config) throws ServletException(Code)(Java Doc) public void init() throws ServletException(Code)(Java Doc) protected void initChain() throws ServletException(Code)(Java Doc) protected Digester initConfigDigester() throws ServletException(Code)(Java Doc) protected void initInternal() throws ServletException(Code)(Java Doc) protected void initModuleActions(ModuleConfig config) throws ServletException(Code)(Java Doc) protected ModuleConfig initModuleConfig(String prefix, String paths) throws ServletException(Code)(Java Doc) protected void initModuleConfigFactory()(Code)(Java Doc) protected void initModuleExceptionConfigs(ModuleConfig config) throws ServletException(Code)(Java Doc) protected void initModuleFormBeans(ModuleConfig config) throws ServletException(Code)(Java Doc) protected void initModuleForwards(ModuleConfig config) throws ServletException(Code)(Java Doc) protected void initModuleMessageResources(ModuleConfig config) throws ServletException(Code)(Java Doc) protected void initModulePlugIns(ModuleConfig config) throws ServletException(Code)(Java Doc) protected void initModulePrefixes(ServletContext context)(Code)(Java Doc) protected void initOther() throws ServletException(Code)(Java Doc) protected void initServlet() throws ServletException(Code)(Java Doc) protected void parseModuleConfigFile(Digester digester, String path) throws UnavailableException(Code)(Java Doc) protected void parseModuleConfigFile(Digester digester, URL url) throws UnavailableException(Code)(Java Doc) protected void process(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException(Code)(Java Doc) protected ActionConfig processActionConfigClass(ActionConfig actionConfig, ModuleConfig moduleConfig) throws ServletException(Code)(Java Doc) protected void processActionConfigExtension(ActionConfig actionConfig, ModuleConfig moduleConfig) throws ServletException(Code)(Java Doc) protected ExceptionConfig processExceptionConfigClass(ExceptionConfig exceptionConfig, ModuleConfig moduleConfig, ActionConfig actionConfig) throws ServletException(Code)(Java Doc) protected void processExceptionExtension(ExceptionConfig exceptionConfig, ModuleConfig moduleConfig, ActionConfig actionConfig) throws ServletException(Code)(Java Doc) protected FormBeanConfig processFormBeanConfigClass(FormBeanConfig beanConfig, ModuleConfig moduleConfig) throws ServletException(Code)(Java Doc) protected void processFormBeanExtension(FormBeanConfig beanConfig, ModuleConfig moduleConfig) throws ServletException(Code)(Java Doc) protected ForwardConfig processForwardConfigClass(ForwardConfig forwardConfig, ModuleConfig moduleConfig, ActionConfig actionConfig) throws ServletException(Code)(Java Doc) protected void processForwardExtension(ForwardConfig forwardConfig, ModuleConfig moduleConfig, ActionConfig actionConfig) throws ServletException(Code)(Java Doc) protected List splitAndResolvePaths(String paths) throws ServletException(Code)(Java Doc)
|
|
|