Java Doc for TestDynaActionForm.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.TestDynaActionFormClass
   org.apache.struts.action.TestDynaActionForm

TestDynaActionForm
public class TestDynaActionForm extends TestDynaActionFormClass (Code)
Suite of unit tests for the org.apache.struts.action.DynaActionForm class.


Field Summary
protected  DynaActionFormdynaForm
     The basic DynaActionForm to use for testing.
protected  Loglog
    
protected  ActionMappingmapping
     Dummy ActionMapping for calls to reset() and validate().
protected  ModuleConfigmoduleConfig
     Dummy ModuleConfig for calls to reset() and validate().
final protected static  String[]properties
     The set of property names we expect to have returned when calling getDynaProperties().

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

Method Summary
public static  voidmain(String[] theArgs)
     Start the tests.
Parameters:
  theArgs - the arguments.
public  voidsetUp()
    
protected  voidsetupComplexProperties()
     Set up the complex properties that cannot be configured from the initial value expression.
public static  Testsuite()
    
public  voidtearDown()
    
public  voidtestBeanCreate()
    
public  voidtestGetDescriptorArguments()
     Corner cases on getDynaProperty invalid arguments.
protected  voidtestGetDescriptorBase(String name, Class type)
     Base for testGetDescriptorXxxxx() series of tests.
public  voidtestGetDescriptorBoolean()
     Positive getDynaProperty on property booleanProperty.
public  voidtestGetDescriptorDouble()
     Positive getDynaProperty on property doubleProperty.
public  voidtestGetDescriptorFloat()
     Positive getDynaProperty on property floatProperty.
public  voidtestGetDescriptorInt()
     Positive getDynaProperty on property intProperty.
public  voidtestGetDescriptorLong()
     Positive getDynaProperty on property longProperty.
public  voidtestGetDescriptorSecond()
     Positive getDynaProperty on property booleanSecond that uses an "is" method as the getter.
public  voidtestGetDescriptorShort()
     Positive getDynaProperty on property shortProperty.
public  voidtestGetDescriptorString()
     Positive getDynaProperty on property stringProperty.
public  voidtestGetDescriptors()
     Positive test for getDynaPropertys().
public  voidtestGetIndexedArguments()
     Corner cases on getIndexedProperty invalid arguments.
public  voidtestGetIndexedValues()
     Positive and negative tests on getIndexedProperty valid arguments.
public  voidtestGetMappedArguments()
     Corner cases on getMappedProperty invalid arguments.
public  voidtestGetMappedValues()
     Positive and negative tests on getMappedProperty valid arguments.
public  voidtestGetSimpleArguments()
     Corner cases on getSimpleProperty invalid arguments.
public  voidtestGetSimpleBoolean()
     Test getSimpleProperty on a boolean property.
public  voidtestGetSimpleDouble()
     Test getSimpleProperty on a double property.
public  voidtestGetSimpleFloat()
     Test getSimpleProperty on a float property.
public  voidtestGetSimpleInt()
     Test getSimpleProperty on a int property.
public  voidtestGetSimpleLong()
     Test getSimpleProperty on a long property.
public  voidtestGetSimpleShort()
     Test getSimpleProperty on a short property.
public  voidtestGetSimpleString()
     Test getSimpleProperty on a String property.
public  voidtestIndexedInitialize()
    
public  voidtestMappedContains()
     Test contains() method for mapped properties.
public  voidtestMappedRemove()
     Test remove() method for mapped properties.
public  voidtestResetGet()
     Test the reset method when the request method is GET.
public  voidtestResetPost()
     Test the reset method when the request method is GET.
public  voidtestScalarInitialize()
    
public  voidtestSetIndexedArguments()
     Corner cases on setIndexedProperty invalid arguments.
public  voidtestSetIndexedValues()
     Positive and negative tests on setIndexedProperty valid arguments.
public  voidtestSetMappedValues()
     Positive and negative tests on setMappedProperty valid arguments.
public  voidtestSetSimpleBoolean()
     Test setSimpleProperty on a boolean property.
public  voidtestSetSimpleDouble()
     Test setSimpleProperty on a double property.
public  voidtestSetSimpleFloat()
     Test setSimpleProperty on a float property.
public  voidtestSetSimpleInt()
     Test setSimpleProperty on a int property.
public  voidtestSetSimpleLong()
     Test setSimpleProperty on a long property.
public  voidtestSetSimpleShort()
     Test setSimpleProperty on a short property.
public  voidtestSetSimpleString()
     Test setSimpleProperty on a String property.

Field Detail
dynaForm
protected DynaActionForm dynaForm(Code)
The basic DynaActionForm to use for testing.



log
protected Log log(Code)



mapping
protected ActionMapping mapping(Code)
Dummy ActionMapping for calls to reset() and validate().



moduleConfig
protected ModuleConfig moduleConfig(Code)
Dummy ModuleConfig for calls to reset() and validate().



properties
final protected static String[] properties(Code)
The set of property names we expect to have returned when calling getDynaProperties(). You should update this list when new properties are added to TestBean.




Constructor Detail
TestDynaActionForm
public TestDynaActionForm(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



setUp
public void setUp()(Code)



setupComplexProperties
protected void setupComplexProperties()(Code)
Set up the complex properties that cannot be configured from the initial value expression.



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



tearDown
public void tearDown()(Code)



testBeanCreate
public void testBeanCreate()(Code)



testGetDescriptorArguments
public void testGetDescriptorArguments()(Code)
Corner cases on getDynaProperty invalid arguments.



testGetDescriptorBase
protected void testGetDescriptorBase(String name, Class type)(Code)
Base for testGetDescriptorXxxxx() series of tests.
Parameters:
  name - Name of the property to be retrieved
Parameters:
  type - Expected class type of this property



testGetDescriptorBoolean
public void testGetDescriptorBoolean()(Code)
Positive getDynaProperty on property booleanProperty.



testGetDescriptorDouble
public void testGetDescriptorDouble()(Code)
Positive getDynaProperty on property doubleProperty.



testGetDescriptorFloat
public void testGetDescriptorFloat()(Code)
Positive getDynaProperty on property floatProperty.



testGetDescriptorInt
public void testGetDescriptorInt()(Code)
Positive getDynaProperty on property intProperty.



testGetDescriptorLong
public void testGetDescriptorLong()(Code)
Positive getDynaProperty on property longProperty.



testGetDescriptorSecond
public void testGetDescriptorSecond()(Code)
Positive getDynaProperty on property booleanSecond that uses an "is" method as the getter.



testGetDescriptorShort
public void testGetDescriptorShort()(Code)
Positive getDynaProperty on property shortProperty.



testGetDescriptorString
public void testGetDescriptorString()(Code)
Positive getDynaProperty on property stringProperty.



testGetDescriptors
public void testGetDescriptors()(Code)
Positive test for getDynaPropertys(). Each property name listed in properties should be returned exactly once.



testGetIndexedArguments
public void testGetIndexedArguments()(Code)
Corner cases on getIndexedProperty invalid arguments.



testGetIndexedValues
public void testGetIndexedValues()(Code)
Positive and negative tests on getIndexedProperty valid arguments.



testGetMappedArguments
public void testGetMappedArguments()(Code)
Corner cases on getMappedProperty invalid arguments.



testGetMappedValues
public void testGetMappedValues()(Code)
Positive and negative tests on getMappedProperty valid arguments.



testGetSimpleArguments
public void testGetSimpleArguments()(Code)
Corner cases on getSimpleProperty invalid arguments.



testGetSimpleBoolean
public void testGetSimpleBoolean()(Code)
Test getSimpleProperty on a boolean property.



testGetSimpleDouble
public void testGetSimpleDouble()(Code)
Test getSimpleProperty on a double property.



testGetSimpleFloat
public void testGetSimpleFloat()(Code)
Test getSimpleProperty on a float property.



testGetSimpleInt
public void testGetSimpleInt()(Code)
Test getSimpleProperty on a int property.



testGetSimpleLong
public void testGetSimpleLong()(Code)
Test getSimpleProperty on a long property.



testGetSimpleShort
public void testGetSimpleShort()(Code)
Test getSimpleProperty on a short property.



testGetSimpleString
public void testGetSimpleString()(Code)
Test getSimpleProperty on a String property.



testIndexedInitialize
public void testIndexedInitialize()(Code)



testMappedContains
public void testMappedContains()(Code)
Test contains() method for mapped properties.



testMappedRemove
public void testMappedRemove()(Code)
Test remove() method for mapped properties.



testResetGet
public void testResetGet()(Code)
Test the reset method when the request method is GET.



testResetPost
public void testResetPost()(Code)
Test the reset method when the request method is GET.



testScalarInitialize
public void testScalarInitialize()(Code)



testSetIndexedArguments
public void testSetIndexedArguments()(Code)
Corner cases on setIndexedProperty invalid arguments.



testSetIndexedValues
public void testSetIndexedValues()(Code)
Positive and negative tests on setIndexedProperty valid arguments.



testSetMappedValues
public void testSetMappedValues()(Code)
Positive and negative tests on setMappedProperty valid arguments.



testSetSimpleBoolean
public void testSetSimpleBoolean()(Code)
Test setSimpleProperty on a boolean property.



testSetSimpleDouble
public void testSetSimpleDouble()(Code)
Test setSimpleProperty on a double property.



testSetSimpleFloat
public void testSetSimpleFloat()(Code)
Test setSimpleProperty on a float property.



testSetSimpleInt
public void testSetSimpleInt()(Code)
Test setSimpleProperty on a int property.



testSetSimpleLong
public void testSetSimpleLong()(Code)
Test setSimpleProperty on a long property.



testSetSimpleShort
public void testSetSimpleShort()(Code)
Test setSimpleProperty on a short property.



testSetSimpleString
public void testSetSimpleString()(Code)
Test setSimpleProperty on a String property.



Fields inherited from org.apache.struts.action.TestDynaActionFormClass
protected FormBeanConfig beanConfig(Code)(Java Doc)
protected DynaActionFormClass dynaClass(Code)(Java Doc)
final protected static FormPropertyConfig[] dynaProperties(Code)(Java Doc)

Methods inherited from org.apache.struts.action.TestDynaActionFormClass
public static void main(String[] theArgs)(Code)(Java Doc)
public void setUp()(Code)(Java Doc)
public static Test suite()(Code)(Java Doc)
public void tearDown()(Code)(Java Doc)
public void testClassCreate()(Code)(Java Doc)
public void testConfigAdd()(Code)(Java Doc)
public void testConfigCreate()(Code)(Java Doc)
public void testConfigDuplicate()(Code)(Java Doc)
public void testConfigInitialValues()(Code)(Java Doc)
public void testConfigProperties()(Code)(Java Doc)
public void testConfigRemove()(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.