Java Doc for TestActionServlet.java in  » Web-Framework » struts-1.3.8 » org » apache » struts » action » 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 » Web Framework » struts 1.3.8 » org.apache.struts.action 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.struts.action.TestActionServlet

TestActionServlet
public class TestActionServlet extends TestCase (Code)
Suite of unit tests for the org.apache.struts.action.ActionServlet class.

Inner Class :public static class CustomFormBeanConfig extends FormBeanConfig
Inner Class :public static class CustomExceptionConfig extends ExceptionConfig
Inner Class :public static class CustomForwardConfig extends ForwardConfig
Inner Class :public static class CustomActionConfig extends ActionConfig

Field Summary
protected  ActionServletactionServlet
     The ActionServlet we'll test.
protected  ActionMappingbaseAction
     The common action config we'll use.
protected  ExceptionConfigbaseException
     The common exception config we'll use.
protected  FormBeanConfigbaseFormBean
     The common form bean we'll use.
protected  ActionForwardbaseForward
     The common action forward we'll use.
protected  ModuleConfigmoduleConfig
     The ModuleConfig we'll use.

Constructor Summary
public  TestActionServlet(String theName)
     Defines the testcase name for JUnit.

Method Summary
public static  voidmain(String[] theArgs)
     Start the tests.
Parameters:
  theArgs - the arguments.
public  voidnotestProcessActionConfigClassError()
     Make sure the code throws the correct exception when it can't create an instance of the base config's custom class.
public  voidnotestProcessExceptionConfigClassError()
     Make sure the code throws the correct exception when it can't create an instance of the base config's custom class.
public  voidnotestProcessFormBeanConfigClassError()
     Make sure the code throws the correct exception when it can't create an instance of the base config's custom class.
public  voidnotestProcessForwardConfigClassError()
     Make sure the code throws the correct exception when it can't create an instance of the base config's custom class.
public  voidnotestSplitAndResolvePaths()
     Test class loader resolution and splitting.
public  voidsetUp()
     Set up instance variables required by this test case.
public static  Testsuite()
    
public  voidtearDown()
     Tear down instance variables required by this test case.
public  voidtestInitDestroyInternal()
     Verify that we can initialize and destroy our internal message resources object.
public  voidtestInitModuleActionConfigsNoExtends()
     Test that nothing fails if there are no extensions.
public  voidtestInitModuleExceptionConfigsNoExtends()
     Test that nothing fails if there are no extensions.
public  voidtestInitModuleExceptionConfigsNullFormType()
     Test that initModuleExceptionConfigs throws an exception when a handler with a null key is present.
public  voidtestInitModuleFormBeansNoExtends()
     Test that nothing fails if there are no extensions.
public  voidtestInitModuleFormBeansNullFormType()
     Test that initModuleFormBeans throws an exception when a form with a null type is present.
public  voidtestInitModuleFormBeansNullPropType()
     Test that initModuleFormBeans throws an exception when a form whose prop type is null is present.
public  voidtestInitModuleForwardConfigsNoExtends()
     Test that nothing fails if there are no extensions.
public  voidtestInitModuleForwardsNullFormType()
     Test that initModuleForwards throws an exception when a forward with a null path is present.
public  voidtestProcessActionConfigClass()
     Make sure processActionConfigClass() returns an instance of the correct class if the base config is using a custom class.
public  voidtestProcessActionConfigClassNoExtends()
     Make sure processActionConfigClass() returns what it was given if the action passed to it doesn't extend anything.
public  voidtestProcessActionConfigClassOverriddenSubConfigClass()
     Test the case where the subconfig has already specified its own config class.
public  voidtestProcessActionConfigClassSubConfigCustomClass()
     Make sure processActionConfigClass() returns the same class instance if the base config isn't using a custom class.
public  voidtestProcessActionExtension()
    
public  voidtestProcessActionExtensionWithExceptionConfig()
     Test that an ActionConfig's ExceptionConfig can inherit from a global ExceptionConfig.
public  voidtestProcessActionExtensionWithForwardConfig()
     Test that an ActionConfig's ForwardConfig can inherit from a global ForwardConfig.
public  voidtestProcessExceptionConfigClass()
     Make sure processExceptionConfigClass() returns an instance of the correct class if the base config is using a custom class.
public  voidtestProcessExceptionConfigClassNoExtends()
     Make sure processExceptionConfigClass() returns what it was given if the handler passed to it doesn't extend anything.
public  voidtestProcessExceptionConfigClassOverriddenSubFormClass()
     Test the case where the subconfig has already specified its own config class.
public  voidtestProcessExceptionConfigClassSubConfigCustomClass()
     Make sure processExceptionConfigClass() returns the same class instance if the base config isn't using a custom class.
public  voidtestProcessExceptionExtension()
    
public  voidtestProcessFormBeanConfigClass()
     Make sure processFormBeanConfigClass() returns an instance of the correct class if the base config is using a custom class.
public  voidtestProcessFormBeanConfigClassNoExtends()
     Make sure processFormBeanConfigClass() returns what it was given if the form passed to it doesn't extend anything.
public  voidtestProcessFormBeanConfigClassOverriddenSubFormClass()
     Test the case where the subform has already specified its own form bean config class.
public  voidtestProcessFormBeanConfigClassSubFormCustomClass()
     Make sure processFormBeanConfigClass() returns the same class instance if the base config isn't using a custom class.
public  voidtestProcessFormBeanExtension()
    
public  voidtestProcessForwardConfigClass()
     Make sure processForwardConfigClass() returns an instance of the correct class if the base config is using a custom class.
public  voidtestProcessForwardConfigClassNoExtends()
     Make sure processForwardConfigClass() returns what it was given if the forward passed to it doesn't extend anything.
public  voidtestProcessForwardConfigClassOverriddenSubConfigClass()
     Test the case where the subconfig has already specified its own config class.
public  voidtestProcessForwardConfigClassSubConfigCustomClass()
     Make sure processForwardConfigClass() returns the same class instance if the base config isn't using a custom class.
public  voidtestProcessForwardExtension()
    

Field Detail
actionServlet
protected ActionServlet actionServlet(Code)
The ActionServlet we'll test.



baseAction
protected ActionMapping baseAction(Code)
The common action config we'll use.



baseException
protected ExceptionConfig baseException(Code)
The common exception config we'll use.



baseFormBean
protected FormBeanConfig baseFormBean(Code)
The common form bean we'll use.



baseForward
protected ActionForward baseForward(Code)
The common action forward we'll use.



moduleConfig
protected ModuleConfig moduleConfig(Code)
The ModuleConfig we'll use.




Constructor Detail
TestActionServlet
public TestActionServlet(String theName)(Code)
Defines the testcase name for JUnit.
Parameters:
  theName - the testcase's name.




Method Detail
main
public static void main(String[] theArgs)(Code)
Start the tests.
Parameters:
  theArgs - the arguments. Not used



notestProcessActionConfigClassError
public void notestProcessActionConfigClassError() throws Exception(Code)
Make sure the code throws the correct exception when it can't create an instance of the base config's custom class.



notestProcessExceptionConfigClassError
public void notestProcessExceptionConfigClassError() throws Exception(Code)
Make sure the code throws the correct exception when it can't create an instance of the base config's custom class.



notestProcessFormBeanConfigClassError
public void notestProcessFormBeanConfigClassError() throws Exception(Code)
Make sure the code throws the correct exception when it can't create an instance of the base config's custom class.



notestProcessForwardConfigClassError
public void notestProcessForwardConfigClassError() throws Exception(Code)
Make sure the code throws the correct exception when it can't create an instance of the base config's custom class.



notestSplitAndResolvePaths
public void notestSplitAndResolvePaths() throws Exception(Code)
Test class loader resolution and splitting.



setUp
public void setUp() throws Exception(Code)
Set up instance variables required by this test case.



suite
public static Test suite()(Code)
a test suite (TestSuite) that includes all methodsstarting with "test"



tearDown
public void tearDown()(Code)
Tear down instance variables required by this test case.



testInitDestroyInternal
public void testInitDestroyInternal()(Code)
Verify that we can initialize and destroy our internal message resources object.



testInitModuleActionConfigsNoExtends
public void testInitModuleActionConfigsNoExtends() throws ServletException(Code)
Test that nothing fails if there are no extensions.



testInitModuleExceptionConfigsNoExtends
public void testInitModuleExceptionConfigsNoExtends() throws ServletException(Code)
Test that nothing fails if there are no extensions.



testInitModuleExceptionConfigsNullFormType
public void testInitModuleExceptionConfigsNullFormType() throws ServletException(Code)
Test that initModuleExceptionConfigs throws an exception when a handler with a null key is present.



testInitModuleFormBeansNoExtends
public void testInitModuleFormBeansNoExtends() throws ServletException(Code)
Test that nothing fails if there are no extensions.



testInitModuleFormBeansNullFormType
public void testInitModuleFormBeansNullFormType() throws ServletException(Code)
Test that initModuleFormBeans throws an exception when a form with a null type is present.



testInitModuleFormBeansNullPropType
public void testInitModuleFormBeansNullPropType() throws ServletException(Code)
Test that initModuleFormBeans throws an exception when a form whose prop type is null is present.



testInitModuleForwardConfigsNoExtends
public void testInitModuleForwardConfigsNoExtends() throws ServletException(Code)
Test that nothing fails if there are no extensions.



testInitModuleForwardsNullFormType
public void testInitModuleForwardsNullFormType() throws ServletException(Code)
Test that initModuleForwards throws an exception when a forward with a null path is present.



testProcessActionConfigClass
public void testProcessActionConfigClass() throws Exception(Code)
Make sure processActionConfigClass() returns an instance of the correct class if the base config is using a custom class.



testProcessActionConfigClassNoExtends
public void testProcessActionConfigClassNoExtends() throws Exception(Code)
Make sure processActionConfigClass() returns what it was given if the action passed to it doesn't extend anything.



testProcessActionConfigClassOverriddenSubConfigClass
public void testProcessActionConfigClassOverriddenSubConfigClass() throws Exception(Code)
Test the case where the subconfig has already specified its own config class. If the code still attempts to create a new instance, an error will be thrown.



testProcessActionConfigClassSubConfigCustomClass
public void testProcessActionConfigClassSubConfigCustomClass() throws Exception(Code)
Make sure processActionConfigClass() returns the same class instance if the base config isn't using a custom class.



testProcessActionExtension
public void testProcessActionExtension() throws ServletException(Code)
Test that processActionConfigExtension() calls processExtends()



testProcessActionExtensionWithExceptionConfig
public void testProcessActionExtensionWithExceptionConfig() throws ServletException(Code)
Test that an ActionConfig's ExceptionConfig can inherit from a global ExceptionConfig.



testProcessActionExtensionWithForwardConfig
public void testProcessActionExtensionWithForwardConfig() throws ServletException(Code)
Test that an ActionConfig's ForwardConfig can inherit from a global ForwardConfig.



testProcessExceptionConfigClass
public void testProcessExceptionConfigClass() throws Exception(Code)
Make sure processExceptionConfigClass() returns an instance of the correct class if the base config is using a custom class.



testProcessExceptionConfigClassNoExtends
public void testProcessExceptionConfigClassNoExtends() throws Exception(Code)
Make sure processExceptionConfigClass() returns what it was given if the handler passed to it doesn't extend anything.



testProcessExceptionConfigClassOverriddenSubFormClass
public void testProcessExceptionConfigClassOverriddenSubFormClass() throws Exception(Code)
Test the case where the subconfig has already specified its own config class. If the code still attempts to create a new instance, an error will be thrown.



testProcessExceptionConfigClassSubConfigCustomClass
public void testProcessExceptionConfigClassSubConfigCustomClass() throws Exception(Code)
Make sure processExceptionConfigClass() returns the same class instance if the base config isn't using a custom class.



testProcessExceptionExtension
public void testProcessExceptionExtension() throws ServletException(Code)
Test that processExceptionExtension() calls processExtends()



testProcessFormBeanConfigClass
public void testProcessFormBeanConfigClass() throws Exception(Code)
Make sure processFormBeanConfigClass() returns an instance of the correct class if the base config is using a custom class.



testProcessFormBeanConfigClassNoExtends
public void testProcessFormBeanConfigClassNoExtends() throws Exception(Code)
Make sure processFormBeanConfigClass() returns what it was given if the form passed to it doesn't extend anything.



testProcessFormBeanConfigClassOverriddenSubFormClass
public void testProcessFormBeanConfigClassOverriddenSubFormClass() throws Exception(Code)
Test the case where the subform has already specified its own form bean config class. If the code still attempts to create a new instance, an error will be thrown.



testProcessFormBeanConfigClassSubFormCustomClass
public void testProcessFormBeanConfigClassSubFormCustomClass() throws Exception(Code)
Make sure processFormBeanConfigClass() returns the same class instance if the base config isn't using a custom class.



testProcessFormBeanExtension
public void testProcessFormBeanExtension() throws ServletException(Code)
Test that processFormBeanExtension() calls processExtends()



testProcessForwardConfigClass
public void testProcessForwardConfigClass() throws Exception(Code)
Make sure processForwardConfigClass() returns an instance of the correct class if the base config is using a custom class.



testProcessForwardConfigClassNoExtends
public void testProcessForwardConfigClassNoExtends() throws Exception(Code)
Make sure processForwardConfigClass() returns what it was given if the forward passed to it doesn't extend anything.



testProcessForwardConfigClassOverriddenSubConfigClass
public void testProcessForwardConfigClassOverriddenSubConfigClass() throws Exception(Code)
Test the case where the subconfig has already specified its own config class. If the code still attempts to create a new instance, an error will be thrown.



testProcessForwardConfigClassSubConfigCustomClass
public void testProcessForwardConfigClassSubConfigCustomClass() throws Exception(Code)
Make sure processForwardConfigClass() returns the same class instance if the base config isn't using a custom class.



testProcessForwardExtension
public void testProcessForwardExtension() throws ServletException(Code)
Test that processForwardExtension() calls processExtends()



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