Method Summary |
|
protected ActionForward | actionPerform(Class action, Class form) |
protected ActionForward | actionPerform(Class action) |
protected ActionForward | actionPerform(Action action) |
protected ActionForward | actionPerform(Action action, ActionForm form) |
protected ActionForward | actionPerform(Action action, Class form) |
protected ActionForward | actionPerform(Class action, ActionForm form) |
protected void | addExceptionHandler(ExceptionHandlerConfig handler) |
protected String | addMappedPropertyRequestPrefix(String property) |
protected ActionForm | createActionForm(Class form) |
protected ActionMockObjectFactory | createActionMockObjectFactory() Creates a
com.mockrunner.mock.web.ActionMockObjectFactory . |
protected ActionMockObjectFactory | createActionMockObjectFactory(WebMockObjectFactory otherFactory) Same as createActionMockObjectFactory(otherFactory, true) . |
protected ActionMockObjectFactory | createActionMockObjectFactory(WebMockObjectFactory otherFactory, boolean createNewSession) Creates a
com.mockrunner.mock.web.ActionMockObjectFactory based on another
com.mockrunner.mock.web.WebMockObjectFactory .
The created
com.mockrunner.mock.web.ActionMockObjectFactory will have its own
request and response objects. |
protected ActionTestModule | createActionTestModule() Creates a
com.mockrunner.struts.ActionTestModule based on the current
com.mockrunner.mock.web.ActionMockObjectFactory . |
protected ActionTestModule | createActionTestModule(ActionMockObjectFactory mockFactory) Creates a
com.mockrunner.struts.ActionTestModule with the specified
com.mockrunner.mock.web.ActionMockObjectFactory . |
protected DynaActionForm | createDynaActionForm(FormBeanConfig formConfig) |
protected ValidatorResources | createValidatorResources(String[] resourcesFiles) |
protected void | generateValidToken() |
protected ActionMessage | getActionErrorByKey(String errorKey) |
protected ActionMessages | getActionErrors() |
protected ActionMessages | getActionErrorsFromRequest() |
protected ActionMessages | getActionErrorsFromSession() |
protected ActionForm | getActionForm() |
protected MockActionForward | getActionForward() |
protected ActionMapping | getActionMapping() |
protected ActionMessage | getActionMessageByKey(String messageKey) |
protected ActionMessages | getActionMessages() |
protected ActionMessages | getActionMessagesFromRequest() |
protected ActionMessages | getActionMessagesFromSession() |
protected ActionMockObjectFactory | getActionMockObjectFactory() Gets the
com.mockrunner.mock.web.ActionMockObjectFactory . |
protected ActionTestModule | getActionTestModule() Gets the
com.mockrunner.struts.ActionTestModule . |
protected HTMLOutputModule | getHTMLOutputModule() Returns the
com.mockrunner.struts.ActionTestModule as
com.mockrunner.base.HTMLOutputModule . |
protected Action | getLastAction() |
protected MockActionMapping | getMockActionMapping() |
protected MockPageContext | getMockPageContext() |
protected boolean | hasActionErrors() |
protected boolean | hasActionMessages() |
protected void | populateRequestToForm() |
protected void | setActionErrors(ActionMessages errors) |
protected void | setActionErrorsToSession(ActionMessages errors) |
protected void | setActionForm(ActionForm formObj) |
protected void | setActionMessages(ActionMessages messages) |
protected void | setActionMessagesToSession(ActionMessages messages) |
protected void | setActionMockObjectFactory(ActionMockObjectFactory actionMockObjectFactory) Sets the
com.mockrunner.mock.web.ActionMockObjectFactory . |
protected void | setActionTestModule(ActionTestModule actionTestModule) Sets the
com.mockrunner.struts.ActionTestModule . |
protected void | setDataSource(DataSource dataSource) |
protected void | setDataSource(String key, DataSource dataSource) |
protected void | setDoPopulate(boolean doPopulate) |
protected void | setErrorAttributeKey(String errorAttributeKey) |
protected void | setInput(String input) |
protected void | setLocale(Locale locale) |
protected void | setMessageAttributeKey(String messageAttributeKey) |
protected void | setParameter(String parameter) |
protected void | setRecognizeMessagesInSession(boolean recognizeInSession) |
protected void | setReset(boolean reset) |
protected void | setResources(MessageResources resources) |
protected void | setResources(String key, MessageResources resources) |
protected void | setUp() Creates the
com.mockrunner.struts.ActionTestModule . |
protected void | setValidate(boolean validate) |
protected void | setValidatorResources(ValidatorResources validatorResources) |
protected void | tearDown() |
protected void | verifyActionErrorNotPresent(String errorKey) |
protected void | verifyActionErrorPresent(String errorKey) |
protected void | verifyActionErrorProperty(String errorKey, String property) |
protected void | verifyActionErrorValue(String errorKey, Object value) |
protected void | verifyActionErrorValues(String errorKey, Object[] values) |
protected void | verifyActionErrors(String[] errorKeys) |
protected void | verifyActionMessageNotPresent(String messageKey) |
protected void | verifyActionMessagePresent(String messageKey) |
protected void | verifyActionMessageProperty(String messageKey, String property) |
protected void | verifyActionMessageValue(String messageKey, Object value) |
protected void | verifyActionMessageValues(String messageKey, Object[] values) |
protected void | verifyActionMessages(String[] messageKeys) |
protected void | verifyForward(String path) |
protected void | verifyForwardName(String name) |
protected void | verifyHasActionErrors() |
protected void | verifyHasActionMessages() |
protected void | verifyNoActionErrors() |
protected void | verifyNoActionMessages() |
protected void | verifyNumberActionErrors(int number) |
protected void | verifyNumberActionMessages(int number) |
protected void | verifyRedirect(boolean redirect) |