Java Doc for ActionTestCaseAdapter.java in  » Testing » mockrunner-0.4 » com » mockrunner » struts » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Testing » mockrunner 0.4 » com.mockrunner.struts 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.mockrunner.base.HTMLOutputTestCase
   com.mockrunner.struts.ActionTestCaseAdapter

All known Subclasses:   com.mockrunner.example.struts.LogoutActionTest,  com.mockrunner.example.ejb.LogActionTest,
ActionTestCaseAdapter
abstract public class ActionTestCaseAdapter extends HTMLOutputTestCase (Code)
Delegator for com.mockrunner.struts.ActionTestModule . You can subclass this adapter or use com.mockrunner.struts.ActionTestModule directly (so your test case can use another base class). This adapter extends com.mockrunner.base.BaseTestCase . It can be used if you want to use several modules in conjunction. This class is generated from the com.mockrunner.struts.ActionTestModule and should not be edited directly.



Constructor Summary
public  ActionTestCaseAdapter()
    
public  ActionTestCaseAdapter(String name)
    

Method Summary
protected  ActionForwardactionPerform(Class action, Class form)
    
protected  ActionForwardactionPerform(Class action)
    
protected  ActionForwardactionPerform(Action action)
    
protected  ActionForwardactionPerform(Action action, ActionForm form)
    
protected  ActionForwardactionPerform(Action action, Class form)
    
protected  ActionForwardactionPerform(Class action, ActionForm form)
    
protected  voidaddExceptionHandler(ExceptionHandlerConfig handler)
    
protected  StringaddMappedPropertyRequestPrefix(String property)
    
protected  ActionFormcreateActionForm(Class form)
    
protected  DynaActionFormcreateDynaActionForm(FormBeanConfig formConfig)
    
protected  ValidatorResourcescreateValidatorResources(String[] resourcesFiles)
    
protected  voidgenerateValidToken()
    
protected  ActionMessagegetActionErrorByKey(String errorKey)
    
protected  ActionMessagesgetActionErrors()
    
protected  ActionMessagesgetActionErrorsFromRequest()
    
protected  ActionMessagesgetActionErrorsFromSession()
    
protected  ActionFormgetActionForm()
    
protected  MockActionForwardgetActionForward()
    
protected  ActionMappinggetActionMapping()
    
protected  ActionMessagegetActionMessageByKey(String messageKey)
    
protected  ActionMessagesgetActionMessages()
    
protected  ActionMessagesgetActionMessagesFromRequest()
    
protected  ActionMessagesgetActionMessagesFromSession()
    
protected  ActionTestModulegetActionTestModule()
     Gets the com.mockrunner.struts.ActionTestModule .
protected  HTMLOutputModulegetHTMLOutputModule()
     Returns the com.mockrunner.struts.ActionTestModule as com.mockrunner.base.HTMLOutputModule .
protected  ActiongetLastAction()
    
protected  MockActionMappinggetMockActionMapping()
    
protected  MockPageContextgetMockPageContext()
    
protected  booleanhasActionErrors()
    
protected  booleanhasActionMessages()
    
protected  voidpopulateRequestToForm()
    
protected  voidsetActionErrors(ActionMessages errors)
    
protected  voidsetActionErrorsToSession(ActionMessages errors)
    
protected  voidsetActionForm(ActionForm formObj)
    
protected  voidsetActionMessages(ActionMessages messages)
    
protected  voidsetActionMessagesToSession(ActionMessages messages)
    
protected  voidsetActionTestModule(ActionTestModule actionTestModule)
     Sets the com.mockrunner.struts.ActionTestModule .
protected  voidsetDataSource(DataSource dataSource)
    
protected  voidsetDataSource(String key, DataSource dataSource)
    
protected  voidsetDoPopulate(boolean doPopulate)
    
protected  voidsetErrorAttributeKey(String errorAttributeKey)
    
protected  voidsetInput(String input)
    
protected  voidsetLocale(Locale locale)
    
protected  voidsetMessageAttributeKey(String messageAttributeKey)
    
protected  voidsetParameter(String parameter)
    
protected  voidsetRecognizeMessagesInSession(boolean recognizeInSession)
    
protected  voidsetReset(boolean reset)
    
protected  voidsetResources(MessageResources resources)
    
protected  voidsetResources(String key, MessageResources resources)
    
protected  voidsetUp()
     Creates the com.mockrunner.struts.ActionTestModule .
protected  voidsetValidate(boolean validate)
    
protected  voidsetValidatorResources(ValidatorResources validatorResources)
    
protected  voidtearDown()
    
protected  voidverifyActionErrorNotPresent(String errorKey)
    
protected  voidverifyActionErrorPresent(String errorKey)
    
protected  voidverifyActionErrorProperty(String errorKey, String property)
    
protected  voidverifyActionErrorValue(String errorKey, Object value)
    
protected  voidverifyActionErrorValues(String errorKey, Object[] values)
    
protected  voidverifyActionErrors(String[] errorKeys)
    
protected  voidverifyActionMessageNotPresent(String messageKey)
    
protected  voidverifyActionMessagePresent(String messageKey)
    
protected  voidverifyActionMessageProperty(String messageKey, String property)
    
protected  voidverifyActionMessageValue(String messageKey, Object value)
    
protected  voidverifyActionMessageValues(String messageKey, Object[] values)
    
protected  voidverifyActionMessages(String[] messageKeys)
    
protected  voidverifyForward(String path)
    
protected  voidverifyForwardName(String name)
    
protected  voidverifyHasActionErrors()
    
protected  voidverifyHasActionMessages()
    
protected  voidverifyNoActionErrors()
    
protected  voidverifyNoActionMessages()
    
protected  voidverifyNumberActionErrors(int number)
    
protected  voidverifyNumberActionMessages(int number)
    
protected  voidverifyRedirect(boolean redirect)
    


Constructor Detail
ActionTestCaseAdapter
public ActionTestCaseAdapter()(Code)



ActionTestCaseAdapter
public ActionTestCaseAdapter(String name)(Code)




Method Detail
actionPerform
protected ActionForward actionPerform(Class action, Class form)(Code)
Delegates to com.mockrunner.struts.ActionTestModule.actionPerform(ClassClass)



actionPerform
protected ActionForward actionPerform(Class action)(Code)
Delegates to com.mockrunner.struts.ActionTestModule.actionPerform(Class)



actionPerform
protected ActionForward actionPerform(Action action)(Code)
Delegates to com.mockrunner.struts.ActionTestModule.actionPerform(Action)



actionPerform
protected ActionForward actionPerform(Action action, ActionForm form)(Code)
Delegates to com.mockrunner.struts.ActionTestModule.actionPerform(ActionActionForm)



actionPerform
protected ActionForward actionPerform(Action action, Class form)(Code)
Delegates to com.mockrunner.struts.ActionTestModule.actionPerform(ActionClass)



actionPerform
protected ActionForward actionPerform(Class action, ActionForm form)(Code)
Delegates to com.mockrunner.struts.ActionTestModule.actionPerform(ClassActionForm)



addExceptionHandler
protected void addExceptionHandler(ExceptionHandlerConfig handler)(Code)
Delegates to com.mockrunner.struts.ActionTestModule.addExceptionHandler(ExceptionHandlerConfig)



addMappedPropertyRequestPrefix
protected String addMappedPropertyRequestPrefix(String property)(Code)
Delegates to com.mockrunner.struts.ActionTestModule.addMappedPropertyRequestPrefix(String)



createActionForm
protected ActionForm createActionForm(Class form)(Code)
Delegates to com.mockrunner.struts.ActionTestModule.createActionForm(Class)



createDynaActionForm
protected DynaActionForm createDynaActionForm(FormBeanConfig formConfig)(Code)
Delegates to com.mockrunner.struts.ActionTestModule.createDynaActionForm(FormBeanConfig)



createValidatorResources
protected ValidatorResources createValidatorResources(String[] resourcesFiles)(Code)
Delegates to com.mockrunner.struts.ActionTestModule.createValidatorResources(String[])



generateValidToken
protected void generateValidToken()(Code)
Delegates to com.mockrunner.struts.ActionTestModule.generateValidToken



getActionErrorByKey
protected ActionMessage getActionErrorByKey(String errorKey)(Code)
Delegates to com.mockrunner.struts.ActionTestModule.getActionErrorByKey(String)



getActionErrors
protected ActionMessages getActionErrors()(Code)
Delegates to com.mockrunner.struts.ActionTestModule.getActionErrors



getActionErrorsFromRequest
protected ActionMessages getActionErrorsFromRequest()(Code)
Delegates to com.mockrunner.struts.ActionTestModule.getActionErrorsFromRequest



getActionErrorsFromSession
protected ActionMessages getActionErrorsFromSession()(Code)
Delegates to com.mockrunner.struts.ActionTestModule.getActionErrorsFromSession



getActionForm
protected ActionForm getActionForm()(Code)
Delegates to com.mockrunner.struts.ActionTestModule.getActionForm



getActionForward
protected MockActionForward getActionForward()(Code)
Delegates to com.mockrunner.struts.ActionTestModule.getActionForward



getActionMapping
protected ActionMapping getActionMapping()(Code)
Delegates to com.mockrunner.struts.ActionTestModule.getActionMapping



getActionMessageByKey
protected ActionMessage getActionMessageByKey(String messageKey)(Code)
Delegates to com.mockrunner.struts.ActionTestModule.getActionMessageByKey(String)



getActionMessages
protected ActionMessages getActionMessages()(Code)
Delegates to com.mockrunner.struts.ActionTestModule.getActionMessages



getActionMessagesFromRequest
protected ActionMessages getActionMessagesFromRequest()(Code)
Delegates to com.mockrunner.struts.ActionTestModule.getActionMessagesFromRequest



getActionMessagesFromSession
protected ActionMessages getActionMessagesFromSession()(Code)
Delegates to com.mockrunner.struts.ActionTestModule.getActionMessagesFromSession



getActionTestModule
protected ActionTestModule getActionTestModule()(Code)
Gets the com.mockrunner.struts.ActionTestModule . the com.mockrunner.struts.ActionTestModule



getHTMLOutputModule
protected HTMLOutputModule getHTMLOutputModule()(Code)
Returns the com.mockrunner.struts.ActionTestModule as com.mockrunner.base.HTMLOutputModule . the com.mockrunner.base.HTMLOutputModule



getLastAction
protected Action getLastAction()(Code)
Delegates to com.mockrunner.struts.ActionTestModule.getLastAction



getMockActionMapping
protected MockActionMapping getMockActionMapping()(Code)
Delegates to com.mockrunner.struts.ActionTestModule.getMockActionMapping



getMockPageContext
protected MockPageContext getMockPageContext()(Code)
Delegates to com.mockrunner.struts.ActionTestModule.getMockPageContext



hasActionErrors
protected boolean hasActionErrors()(Code)
Delegates to com.mockrunner.struts.ActionTestModule.hasActionErrors



hasActionMessages
protected boolean hasActionMessages()(Code)
Delegates to com.mockrunner.struts.ActionTestModule.hasActionMessages



populateRequestToForm
protected void populateRequestToForm()(Code)
Delegates to com.mockrunner.struts.ActionTestModule.populateRequestToForm



setActionErrors
protected void setActionErrors(ActionMessages errors)(Code)
Delegates to com.mockrunner.struts.ActionTestModule.setActionErrors(ActionMessages)



setActionErrorsToSession
protected void setActionErrorsToSession(ActionMessages errors)(Code)
Delegates to com.mockrunner.struts.ActionTestModule.setActionErrorsToSession(ActionMessages)



setActionForm
protected void setActionForm(ActionForm formObj)(Code)
Delegates to com.mockrunner.struts.ActionTestModule.setActionForm(ActionForm)



setActionMessages
protected void setActionMessages(ActionMessages messages)(Code)
Delegates to com.mockrunner.struts.ActionTestModule.setActionMessages(ActionMessages)



setActionMessagesToSession
protected void setActionMessagesToSession(ActionMessages messages)(Code)
Delegates to com.mockrunner.struts.ActionTestModule.setActionMessagesToSession(ActionMessages)



setActionTestModule
protected void setActionTestModule(ActionTestModule actionTestModule)(Code)
Sets the com.mockrunner.struts.ActionTestModule .
Parameters:
  actionTestModule - the com.mockrunner.struts.ActionTestModule



setDataSource
protected void setDataSource(DataSource dataSource)(Code)
Delegates to com.mockrunner.struts.ActionTestModule.setDataSource(DataSource)



setDataSource
protected void setDataSource(String key, DataSource dataSource)(Code)
Delegates to com.mockrunner.struts.ActionTestModule.setDataSource(StringDataSource)



setDoPopulate
protected void setDoPopulate(boolean doPopulate)(Code)
Delegates to com.mockrunner.struts.ActionTestModule.setDoPopulate(boolean)



setErrorAttributeKey
protected void setErrorAttributeKey(String errorAttributeKey)(Code)
Delegates to com.mockrunner.struts.ActionTestModule.setErrorAttributeKey(String)



setInput
protected void setInput(String input)(Code)
Delegates to com.mockrunner.struts.ActionTestModule.setInput(String)



setLocale
protected void setLocale(Locale locale)(Code)
Delegates to com.mockrunner.struts.ActionTestModule.setLocale(Locale)



setMessageAttributeKey
protected void setMessageAttributeKey(String messageAttributeKey)(Code)
Delegates to com.mockrunner.struts.ActionTestModule.setMessageAttributeKey(String)



setParameter
protected void setParameter(String parameter)(Code)
Delegates to com.mockrunner.struts.ActionTestModule.setParameter(String)



setRecognizeMessagesInSession
protected void setRecognizeMessagesInSession(boolean recognizeInSession)(Code)
Delegates to com.mockrunner.struts.ActionTestModule.setRecognizeMessagesInSession(boolean)



setReset
protected void setReset(boolean reset)(Code)
Delegates to com.mockrunner.struts.ActionTestModule.setReset(boolean)



setResources
protected void setResources(MessageResources resources)(Code)
Delegates to com.mockrunner.struts.ActionTestModule.setResources(MessageResources)



setResources
protected void setResources(String key, MessageResources resources)(Code)
Delegates to com.mockrunner.struts.ActionTestModule.setResources(StringMessageResources)



setUp
protected void setUp() throws Exception(Code)
Creates the com.mockrunner.struts.ActionTestModule . If you overwrite this method, you must call super.setUp().



setValidate
protected void setValidate(boolean validate)(Code)
Delegates to com.mockrunner.struts.ActionTestModule.setValidate(boolean)



setValidatorResources
protected void setValidatorResources(ValidatorResources validatorResources)(Code)
Delegates to com.mockrunner.struts.ActionTestModule.setValidatorResources(ValidatorResources)



tearDown
protected void tearDown() throws Exception(Code)



verifyActionErrorNotPresent
protected void verifyActionErrorNotPresent(String errorKey)(Code)
Delegates to com.mockrunner.struts.ActionTestModule.verifyActionErrorNotPresent(String)



verifyActionErrorPresent
protected void verifyActionErrorPresent(String errorKey)(Code)
Delegates to com.mockrunner.struts.ActionTestModule.verifyActionErrorPresent(String)



verifyActionErrorProperty
protected void verifyActionErrorProperty(String errorKey, String property)(Code)
Delegates to com.mockrunner.struts.ActionTestModule.verifyActionErrorProperty(StringString)



verifyActionErrorValue
protected void verifyActionErrorValue(String errorKey, Object value)(Code)
Delegates to com.mockrunner.struts.ActionTestModule.verifyActionErrorValue(StringObject)



verifyActionErrorValues
protected void verifyActionErrorValues(String errorKey, Object[] values)(Code)
Delegates to com.mockrunner.struts.ActionTestModule.verifyActionErrorValues(StringObject[])



verifyActionErrors
protected void verifyActionErrors(String[] errorKeys)(Code)
Delegates to com.mockrunner.struts.ActionTestModule.verifyActionErrors(String[])



verifyActionMessageNotPresent
protected void verifyActionMessageNotPresent(String messageKey)(Code)
Delegates to com.mockrunner.struts.ActionTestModule.verifyActionMessageNotPresent(String)



verifyActionMessagePresent
protected void verifyActionMessagePresent(String messageKey)(Code)
Delegates to com.mockrunner.struts.ActionTestModule.verifyActionMessagePresent(String)



verifyActionMessageProperty
protected void verifyActionMessageProperty(String messageKey, String property)(Code)
Delegates to com.mockrunner.struts.ActionTestModule.verifyActionMessageProperty(StringString)



verifyActionMessageValue
protected void verifyActionMessageValue(String messageKey, Object value)(Code)
Delegates to com.mockrunner.struts.ActionTestModule.verifyActionMessageValue(StringObject)



verifyActionMessageValues
protected void verifyActionMessageValues(String messageKey, Object[] values)(Code)
Delegates to com.mockrunner.struts.ActionTestModule.verifyActionMessageValues(StringObject[])



verifyActionMessages
protected void verifyActionMessages(String[] messageKeys)(Code)
Delegates to com.mockrunner.struts.ActionTestModule.verifyActionMessages(String[])



verifyForward
protected void verifyForward(String path)(Code)
Delegates to com.mockrunner.struts.ActionTestModule.verifyForward(String)



verifyForwardName
protected void verifyForwardName(String name)(Code)
Delegates to com.mockrunner.struts.ActionTestModule.verifyForwardName(String)



verifyHasActionErrors
protected void verifyHasActionErrors()(Code)
Delegates to com.mockrunner.struts.ActionTestModule.verifyHasActionErrors



verifyHasActionMessages
protected void verifyHasActionMessages()(Code)
Delegates to com.mockrunner.struts.ActionTestModule.verifyHasActionMessages



verifyNoActionErrors
protected void verifyNoActionErrors()(Code)
Delegates to com.mockrunner.struts.ActionTestModule.verifyNoActionErrors



verifyNoActionMessages
protected void verifyNoActionMessages()(Code)
Delegates to com.mockrunner.struts.ActionTestModule.verifyNoActionMessages



verifyNumberActionErrors
protected void verifyNumberActionErrors(int number)(Code)
Delegates to com.mockrunner.struts.ActionTestModule.verifyNumberActionErrors(int)



verifyNumberActionMessages
protected void verifyNumberActionMessages(int number)(Code)
Delegates to com.mockrunner.struts.ActionTestModule.verifyNumberActionMessages(int)



verifyRedirect
protected void verifyRedirect(boolean redirect)(Code)
Delegates to com.mockrunner.struts.ActionTestModule.verifyRedirect(boolean)



Methods inherited from com.mockrunner.base.HTMLOutputTestCase
abstract protected HTMLOutputModule getHTMLOutputModule()(Code)(Java Doc)
protected String getOutput()(Code)(Java Doc)
protected BufferedReader getOutputAsBufferedReader()(Code)(Java Doc)
protected org.jdom.Document getOutputAsJDOMDocument()(Code)(Java Doc)
protected org.w3c.dom.Document getOutputAsW3CDocument()(Code)(Java Doc)
protected String getOutputAsWellformedXML()(Code)(Java Doc)
protected WebTestModule getWebTestModule()(Code)(Java Doc)
protected void setCaseSensitive(boolean caseSensitive)(Code)(Java Doc)
protected void verifyOutput(String expectedOutput)(Code)(Java Doc)
protected void verifyOutputContains(String expectedOutput)(Code)(Java Doc)
protected void verifyOutputRegularExpression(String expression)(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.