Java Doc for BeanMapTestCase.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.BeanMapTestCase

BeanMapTestCase
public class BeanMapTestCase extends AbstractTestMap (Code)
Test cases for BeanMap
version:
   $Revision: 557796 $ $Date: 2007-07-19 23:28:49 +0100 (Thu, 19 Jul 2007) $
author:
   Morgan Delagrange
author:
   Stephen Colebourne

Inner Class :public static class BeanWithProperties implements Serializable


Constructor Summary
public  BeanMapTestCase(String testName)
    

Method Summary
public  Object[]getNewSampleValues()
    
public  Object[]getSampleKeys()
    
public  Object[]getSampleValues()
    
public  String[]ignoredTests()
    
public  booleanisPutAddSupported()
     The mappings in a BeanMap are fixed on the properties the underlying bean has.
public  booleanisRemoveSupported()
     The mappings in a BeanMap are fixed on the properties the underlying bean has.
public static  voidmain(String[] args)
    
public  MapmakeEmptyMap()
    
public  MapmakeFullMap()
    
public static  Testsuite()
    
public  voidtestBeanMapClone()
    
public  voidtestBeanMapPutAllWriteable()
    
public  voidtestDefaultTransformersMap()
    
public  voidtestGetDefaultTransformersMap()
    
public  voidtestGetTypeTransformerMethod()
    
public  voidtestMapClear()
     Need to override this method because the "clear()" method on the bean map just returns the bean properties to their default states.
public  voidtestMapPut()
     Need to override this method because the "put()" method on the bean doesn't work for this type of Map.
public  voidtestMethodAccessor()
    
public  voidtestMethodMutator()
    
public  voidverifyValues()
     Values is a dead copy in BeanMap, so refresh each time.


Constructor Detail
BeanMapTestCase
public BeanMapTestCase(String testName)(Code)




Method Detail
getNewSampleValues
public Object[] getNewSampleValues()(Code)



getSampleKeys
public Object[] getSampleKeys()(Code)



getSampleValues
public Object[] getSampleValues()(Code)



ignoredTests
public String[] ignoredTests()(Code)



isPutAddSupported
public boolean isPutAddSupported()(Code)
The mappings in a BeanMap are fixed on the properties the underlying bean has. Adding and removing mappings is not possible, thus this method is overridden to return false.



isRemoveSupported
public boolean isRemoveSupported()(Code)
The mappings in a BeanMap are fixed on the properties the underlying bean has. Adding and removing mappings is not possible, thus this method is overridden to return false.



main
public static void main(String[] args)(Code)



makeEmptyMap
public Map makeEmptyMap()(Code)



makeFullMap
public Map makeFullMap()(Code)



suite
public static Test suite()(Code)



testBeanMapClone
public void testBeanMapClone()(Code)



testBeanMapPutAllWriteable
public void testBeanMapPutAllWriteable()(Code)



testDefaultTransformersMap
public void testDefaultTransformersMap()(Code)
Test the default transformers HashMap



testGetDefaultTransformersMap
public void testGetDefaultTransformersMap()(Code)
Test the default transformers via the public static Map instance



testGetTypeTransformerMethod
public void testGetTypeTransformerMethod()(Code)
Test the default transformers using the getTypeTransformer() method



testMapClear
public void testMapClear()(Code)
Need to override this method because the "clear()" method on the bean map just returns the bean properties to their default states. It does not actually remove the mappings as per the map contract. The default testClear() methods checks that the clear method throws an UnsupportedOperationException since this class is not add/remove modifiable. In our case though, we do not always throw that exception.



testMapPut
public void testMapPut()(Code)
Need to override this method because the "put()" method on the bean doesn't work for this type of Map.



testMethodAccessor
public void testMethodAccessor() throws Exception(Code)



testMethodMutator
public void testMethodMutator() throws Exception(Code)



verifyValues
public void verifyValues()(Code)
Values is a dead copy in BeanMap, so refresh each time.



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