Java Doc for StoreDataActionTest.java in  » Testing » mockrunner-0.4 » com » mockrunner » example » 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.example.struts 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.mockrunner.struts.BasicActionTestCaseAdapter
   com.mockrunner.example.struts.StoreDataActionTest

StoreDataActionTest
public class StoreDataActionTest extends BasicActionTestCaseAdapter (Code)
Example test for StoreDataAction . Demonstrates multithread testing. The use of an inner thread class and a single test method is a standard pattern that can be used in any multithreading test for Servlets and actions. Please note that each thread has to call the action with different sessions and requests but with one ServletContext in order to simulate the real container behaviour. See the constructor of the thread how to deal with the test module and factory. Remove the synchronized keyword in StoreDataAction and the test will fail. com.mockrunner.base.MultiThreadTestSuite is meant to make multithread testing much easier, but it is not working properly yet, so we do not use it here.

Inner Class :public class StoreTestThread extends Thread



Method Summary
protected  voidsetUp()
    
public  voidtestStoreDataAction()
    



Method Detail
setUp
protected void setUp() throws Exception(Code)



testStoreDataAction
public void testStoreDataAction() throws Exception(Code)



Methods inherited from com.mockrunner.struts.BasicActionTestCaseAdapter
protected ActionForward actionPerform(Class action, Class form)(Code)(Java Doc)
protected ActionForward actionPerform(Class action)(Code)(Java Doc)
protected ActionForward actionPerform(Action action)(Code)(Java Doc)
protected ActionForward actionPerform(Action action, ActionForm form)(Code)(Java Doc)
protected ActionForward actionPerform(Action action, Class form)(Code)(Java Doc)
protected ActionForward actionPerform(Class action, ActionForm form)(Code)(Java Doc)
protected void addExceptionHandler(ExceptionHandlerConfig handler)(Code)(Java Doc)
protected String addMappedPropertyRequestPrefix(String property)(Code)(Java Doc)
protected ActionForm createActionForm(Class form)(Code)(Java Doc)
protected ActionMockObjectFactory createActionMockObjectFactory()(Code)(Java Doc)
protected ActionMockObjectFactory createActionMockObjectFactory(WebMockObjectFactory otherFactory)(Code)(Java Doc)
protected ActionMockObjectFactory createActionMockObjectFactory(WebMockObjectFactory otherFactory, boolean createNewSession)(Code)(Java Doc)
protected ActionTestModule createActionTestModule()(Code)(Java Doc)
protected ActionTestModule createActionTestModule(ActionMockObjectFactory mockFactory)(Code)(Java Doc)
protected DynaActionForm createDynaActionForm(FormBeanConfig formConfig)(Code)(Java Doc)
protected ValidatorResources createValidatorResources(String[] resourcesFiles)(Code)(Java Doc)
protected void generateValidToken()(Code)(Java Doc)
protected ActionMessage getActionErrorByKey(String errorKey)(Code)(Java Doc)
protected ActionMessages getActionErrors()(Code)(Java Doc)
protected ActionMessages getActionErrorsFromRequest()(Code)(Java Doc)
protected ActionMessages getActionErrorsFromSession()(Code)(Java Doc)
protected ActionForm getActionForm()(Code)(Java Doc)
protected MockActionForward getActionForward()(Code)(Java Doc)
protected ActionMapping getActionMapping()(Code)(Java Doc)
protected ActionMessage getActionMessageByKey(String messageKey)(Code)(Java Doc)
protected ActionMessages getActionMessages()(Code)(Java Doc)
protected ActionMessages getActionMessagesFromRequest()(Code)(Java Doc)
protected ActionMessages getActionMessagesFromSession()(Code)(Java Doc)
protected ActionMockObjectFactory getActionMockObjectFactory()(Code)(Java Doc)
protected ActionTestModule getActionTestModule()(Code)(Java Doc)
protected HTMLOutputModule getHTMLOutputModule()(Code)(Java Doc)
protected Action getLastAction()(Code)(Java Doc)
protected MockActionMapping getMockActionMapping()(Code)(Java Doc)
protected MockPageContext getMockPageContext()(Code)(Java Doc)
protected boolean hasActionErrors()(Code)(Java Doc)
protected boolean hasActionMessages()(Code)(Java Doc)
protected void populateRequestToForm()(Code)(Java Doc)
protected void setActionErrors(ActionMessages errors)(Code)(Java Doc)
protected void setActionErrorsToSession(ActionMessages errors)(Code)(Java Doc)
protected void setActionForm(ActionForm formObj)(Code)(Java Doc)
protected void setActionMessages(ActionMessages messages)(Code)(Java Doc)
protected void setActionMessagesToSession(ActionMessages messages)(Code)(Java Doc)
protected void setActionMockObjectFactory(ActionMockObjectFactory actionMockObjectFactory)(Code)(Java Doc)
protected void setActionTestModule(ActionTestModule actionTestModule)(Code)(Java Doc)
protected void setDataSource(DataSource dataSource)(Code)(Java Doc)
protected void setDataSource(String key, DataSource dataSource)(Code)(Java Doc)
protected void setDoPopulate(boolean doPopulate)(Code)(Java Doc)
protected void setErrorAttributeKey(String errorAttributeKey)(Code)(Java Doc)
protected void setInput(String input)(Code)(Java Doc)
protected void setLocale(Locale locale)(Code)(Java Doc)
protected void setMessageAttributeKey(String messageAttributeKey)(Code)(Java Doc)
protected void setParameter(String parameter)(Code)(Java Doc)
protected void setRecognizeMessagesInSession(boolean recognizeInSession)(Code)(Java Doc)
protected void setReset(boolean reset)(Code)(Java Doc)
protected void setResources(MessageResources resources)(Code)(Java Doc)
protected void setResources(String key, MessageResources resources)(Code)(Java Doc)
protected void setUp() throws Exception(Code)(Java Doc)
protected void setValidate(boolean validate)(Code)(Java Doc)
protected void setValidatorResources(ValidatorResources validatorResources)(Code)(Java Doc)
protected void tearDown() throws Exception(Code)(Java Doc)
protected void verifyActionErrorNotPresent(String errorKey)(Code)(Java Doc)
protected void verifyActionErrorPresent(String errorKey)(Code)(Java Doc)
protected void verifyActionErrorProperty(String errorKey, String property)(Code)(Java Doc)
protected void verifyActionErrorValue(String errorKey, Object value)(Code)(Java Doc)
protected void verifyActionErrorValues(String errorKey, Object[] values)(Code)(Java Doc)
protected void verifyActionErrors(String[] errorKeys)(Code)(Java Doc)
protected void verifyActionMessageNotPresent(String messageKey)(Code)(Java Doc)
protected void verifyActionMessagePresent(String messageKey)(Code)(Java Doc)
protected void verifyActionMessageProperty(String messageKey, String property)(Code)(Java Doc)
protected void verifyActionMessageValue(String messageKey, Object value)(Code)(Java Doc)
protected void verifyActionMessageValues(String messageKey, Object[] values)(Code)(Java Doc)
protected void verifyActionMessages(String[] messageKeys)(Code)(Java Doc)
protected void verifyForward(String path)(Code)(Java Doc)
protected void verifyForwardName(String name)(Code)(Java Doc)
protected void verifyHasActionErrors()(Code)(Java Doc)
protected void verifyHasActionMessages()(Code)(Java Doc)
protected void verifyNoActionErrors()(Code)(Java Doc)
protected void verifyNoActionMessages()(Code)(Java Doc)
protected void verifyNumberActionErrors(int number)(Code)(Java Doc)
protected void verifyNumberActionMessages(int number)(Code)(Java Doc)
protected void verifyRedirect(boolean redirect)(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.