Java Doc for TestConfigurationDynaBean.java in  » Library » Apache-commons-configuration-1.4-src » org » apache » commons » configuration » beanutils » 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 » Library » Apache commons configuration 1.4 src » org.apache.commons.configuration.beanutils 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.commons.configuration.beanutils.TestConfigurationDynaBean

All known Subclasses:   org.apache.commons.configuration.beanutils.TestConfigurationDynaBeanXMLConfig,
TestConfigurationDynaBean
public class TestConfigurationDynaBean extends TestCase (Code)

Test Case for the ConfigurationDynaBean implementation class. These tests were based on the ones in BasicDynaBeanTestCase because the two classes provide similar levels of functionality.


author:
   Ricardo Gladwell
version:
   $Revision: 447537 $


Field Summary
 boolean[]booleanArray
    
 byte[]byteArray
    
 char[]charArray
    
 double[]doubleArray
    
 float[]floatArray
    
 int[]intArray
    
 long[]longArray
    
 String[]properties
     The set of property names we expect to have returned when calling getDynaProperties().
 short[]shortArray
    
 String[]stringArray
    
 Object[]values
    


Method Summary
protected  ConfigurationcreateConfiguration()
     Creates the underlying configuration object for the dyna bean.
public  voidsetUp()
     Set up instance variables required by this test case.
public  voidtestAddNullPropertyValue()
     Tests set on a null value: should throw NPE.
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  voidtestGetNonExistentProperty()
     Test the retrieval of a non-existent property.
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  voidtestMappedContains()
     Test contains() method for mapped properties.
public  voidtestMappedRemove()
     Test remove() method for mapped properties.
public  voidtestNestedPropeties()
     Tests if accessing a non-indexed property using the index get method throws an IllegalArgumentException as it should.
public  voidtestNonIndexedPropeties()
     Tests if accessing a non-indexed property using the index get method throws an IllegalArgumentException as it should.
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
booleanArray
boolean[] booleanArray(Code)



byteArray
byte[] byteArray(Code)



charArray
char[] charArray(Code)



doubleArray
double[] doubleArray(Code)



floatArray
float[] floatArray(Code)



intArray
int[] intArray(Code)



longArray
long[] longArray(Code)



properties
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.



shortArray
short[] shortArray(Code)



stringArray
String[] stringArray(Code)



values
Object[] values(Code)





Method Detail
createConfiguration
protected Configuration createConfiguration()(Code)
Creates the underlying configuration object for the dyna bean. the underlying configuration object



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



testAddNullPropertyValue
public void testAddNullPropertyValue()(Code)
Tests set on a null value: should throw NPE.



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.



testGetNonExistentProperty
public void testGetNonExistentProperty()(Code)
Test the retrieval of a non-existent property.



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.



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



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



testNestedPropeties
public void testNestedPropeties()(Code)
Tests if accessing a non-indexed property using the index get method throws an IllegalArgumentException as it should.



testNonIndexedPropeties
public void testNonIndexedPropeties()(Code)
Tests if accessing a non-indexed property using the index get method throws an IllegalArgumentException as it should.



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.



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