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


org.apache.commons.beanutils.IndexedPropertyTestCase

IndexedPropertyTestCase
public class IndexedPropertyTestCase extends TestCase (Code)

Test Case for the Indexed Properties.


author:
   Niall Pemberton
version:
   $Revision: 546480 $ $Date: 2007-06-12 14:35:32 +0100 (Tue, 12 Jun 2007) $



Constructor Summary
public  IndexedPropertyTestCase(String name)
     Construct a new instance of this test case.

Method Summary
public  voidsetUp()
     Set up instance variables required by this test case.
public static  Testsuite()
     Return the tests included in this test suite.
public  voidtearDown()
     Tear down instance variables required by this test case.
public  voidtestArrayIndexedPropertyDescriptor()
    
public  voidtestArrayIndexedReadMethod()
    
public  voidtestArrayIndexedWriteMethod()
    
public  voidtestArrayListIndexedPropertyDescriptor()
    
public  voidtestArrayListReadMethod()
    
public  voidtestArrayListWriteMethod()
    
public  voidtestArrayReadMethod()
    
public  voidtestArrayWriteMethod()
    
public  voidtestGetArray()
    
public  voidtestGetArrayAsString()
    
public  voidtestGetArrayItemA()
    
public  voidtestGetArrayItemB()
    
public  voidtestGetArrayList()
    
public  voidtestGetList()
     Test getting a List JDK 1.3.1_04: Test Passes JDK 1.4.2_05: Test Fails - fails NoSuchMethodException, i.e.
public  voidtestGetListAsString()
     Test getting a List property as a String JDK 1.3.1_04: Test Passes JDK 1.4.2_05: Test Fails - fails NoSuchMethodException, i.e.
public  voidtestGetListItemA()
    
public  voidtestGetListItemB()
    
public  voidtestListIndexedPropertyDescriptor()
    
public  voidtestListIndexedReadMethod()
    
public  voidtestListIndexedWriteMethod()
    
public  voidtestListReadMethod()
    
public  voidtestListWriteMethod()
    
public  voidtestSetArray()
     Test setting an Array property JDK 1.3.1_04 and 1.4.2_05: Test Fails - IllegalArgumentException can't invoke setter, argument type mismatch Fails because of a bug in BeanUtilsBean.setProperty() method.
public  voidtestSetArrayItemA()
    
public  voidtestSetArrayItemB()
    
public  voidtestSetArrayList()
    
public  voidtestSetList()
     Test setting a List property JDK 1.3.1_04: Test Passes JDK 1.4.2_05: Test Fails - setter which returns java.util.List not returned by IndexedPropertyDescriptor.getWriteMethod() - therefore setProperty does nothing and values remain unchanged.
public  voidtestSetListItemA()
    
public  voidtestSetListItemB()
    


Constructor Detail
IndexedPropertyTestCase
public IndexedPropertyTestCase(String name)(Code)
Construct a new instance of this test case.
Parameters:
  name - Name of the test case




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



suite
public static Test suite()(Code)
Return the tests included in this test suite.



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



testArrayIndexedPropertyDescriptor
public void testArrayIndexedPropertyDescriptor()(Code)
Test IndexedPropertyDescriptor for an Array



testArrayIndexedReadMethod
public void testArrayIndexedReadMethod()(Code)
Test Indexed Read Method for an Array



testArrayIndexedWriteMethod
public void testArrayIndexedWriteMethod()(Code)
Test Indexed Write Method for an Array



testArrayListIndexedPropertyDescriptor
public void testArrayListIndexedPropertyDescriptor()(Code)
Test IndexedPropertyDescriptor for an ArrayList



testArrayListReadMethod
public void testArrayListReadMethod()(Code)
Test Read Method for an ArrayList



testArrayListWriteMethod
public void testArrayListWriteMethod()(Code)
Test Write Method for an ArrayList



testArrayReadMethod
public void testArrayReadMethod()(Code)
Test Read Method for an Array



testArrayWriteMethod
public void testArrayWriteMethod()(Code)
Test Write Method for an Array



testGetArray
public void testGetArray()(Code)
Test getting an array property



testGetArrayAsString
public void testGetArrayAsString()(Code)
Test getting an array property as a String NOTE: Why does retrieving array just return the first element in the array, whereas retrieveing a List returns a comma separated list of all the elements?



testGetArrayItemA
public void testGetArrayItemA()(Code)
Test getting an indexed item of an Array using getProperty("name[x]")



testGetArrayItemB
public void testGetArrayItemB()(Code)
Test getting an indexed item of an Array using getIndexedProperty("name")



testGetArrayList
public void testGetArrayList()(Code)
Test getting an ArrayList



testGetList
public void testGetList()(Code)
Test getting a List JDK 1.3.1_04: Test Passes JDK 1.4.2_05: Test Fails - fails NoSuchMethodException, i.e. reason as testListReadMethod() failed.



testGetListAsString
public void testGetListAsString()(Code)
Test getting a List property as a String JDK 1.3.1_04: Test Passes JDK 1.4.2_05: Test Fails - fails NoSuchMethodException, i.e. reason as testListReadMethod() failed.



testGetListItemA
public void testGetListItemA()(Code)
Test getting an indexed item of a List using getProperty("name[x]")



testGetListItemB
public void testGetListItemB()(Code)
Test getting an indexed item of a List using getIndexedProperty("name")



testListIndexedPropertyDescriptor
public void testListIndexedPropertyDescriptor()(Code)
Test IndexedPropertyDescriptor for a List



testListIndexedReadMethod
public void testListIndexedReadMethod()(Code)
Test Indexed Read Method for a List



testListIndexedWriteMethod
public void testListIndexedWriteMethod()(Code)
Test Indexed Write Method for a List



testListReadMethod
public void testListReadMethod()(Code)
Test Read Method for a List JDK 1.3.1_04: Test Passes JDK 1.4.2_05: Test Fails - getter which returns java.util.List not returned by IndexedPropertyDescriptor.getReadMethod();



testListWriteMethod
public void testListWriteMethod()(Code)
Test Write Method for a List JDK 1.3.1_04: Test Passes JDK 1.4.2_05: Test Fails - setter whith java.util.List argument not returned by IndexedPropertyDescriptor.getWriteMethod();



testSetArray
public void testSetArray()(Code)
Test setting an Array property JDK 1.3.1_04 and 1.4.2_05: Test Fails - IllegalArgumentException can't invoke setter, argument type mismatch Fails because of a bug in BeanUtilsBean.setProperty() method. Value is always converted to the array's component type which in this case is a String. Then it calls the setStringArray(String[]) passing a String rather than String[] causing this exception. If there isn't an "index" value then the PropertyType (rather than IndexedPropertyType) should be used.



testSetArrayItemA
public void testSetArrayItemA()(Code)
Test setting an indexed item of an Array using setProperty("name[x]", value)



testSetArrayItemB
public void testSetArrayItemB()(Code)
Test setting an indexed item of an Array using setIndexedProperty("name", value)



testSetArrayList
public void testSetArrayList()(Code)
Test setting an ArrayList property



testSetList
public void testSetList()(Code)
Test setting a List property JDK 1.3.1_04: Test Passes JDK 1.4.2_05: Test Fails - setter which returns java.util.List not returned by IndexedPropertyDescriptor.getWriteMethod() - therefore setProperty does nothing and values remain unchanged.



testSetListItemA
public void testSetListItemA()(Code)
Test setting an indexed item of a List using setProperty("name[x]", value)



testSetListItemB
public void testSetListItemB()(Code)
Test setting an indexed item of a List using setIndexedProperty("name", value)



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