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

TestBeanHelper
public class TestBeanHelper extends TestCase (Code)
Test class for BeanHelper.
since:
   1.3
author:
   Oliver Heger
version:
   $Id: TestBeanHelper.java 439648 2006-09-02 20:42:10Z oheger $

Inner Class :public static class TestBean
Inner Class :static class TestBeanFactory implements BeanFactory
Inner Class :static class TestBeanDeclaration implements BeanDeclaration



Method Summary
protected  voidsetUp()
    
protected  voidtearDown()
    
public  voidtestCreateBean()
     Tests creating a bean.
public  voidtestCreateBeanWithDefaultClass()
     Tests creating a bean.
public  voidtestCreateBeanWithDefaultFactory()
     Tests creating a bean using the default bean factory.
public  voidtestCreateBeanWithException()
     Tests creating a bean when the factory throws an exception.
public  voidtestCreateBeanWithFactoryDefaultClass()
     Tests creating a bean when the bean's class is specified as the default class of the bean factory.
public  voidtestCreateBeanWithInvalidClass()
     Tries to create a bean with a non existing class.
public  voidtestCreateBeanWithNoClass()
     Tries to create a bean when no class is provided.
public  voidtestCreateBeanWithNullDeclaration()
     Tests creating a bean when no bean declaration is provided.
public  voidtestCreateBeanWithParameter()
     Tests if a parameter is correctly passed to the bean factory.
public  voidtestCreateBeanWithUnknownFactory()
     Tests creating a bean using a non registered factory.
public  voidtestDeregisterBeanFactory()
     Tests to deregister a bean factory.
public  voidtestGetDefaultBeanFactory()
     Tests whether the default bean factory is correctly initialized.
public  voidtestInitBean()
     Tests initializing a bean.
public  voidtestInitBeanWithInvalidProperty()
     Tries to initialize a bean with a bean declaration that contains an invalid property value.
public  voidtestInitBeanWithNoData()
     Tests initializing a bean when the bean declaration does not contain any data.
public  voidtestRegisterBeanFactory()
     Tests registering a new bean factory.
public  voidtestRegisterBeanFactoryNull()
     Tries to register a null factory.
public  voidtestRegisterBeanFactoryNullName()
     Tries to register a bean factory with a null name.
public  voidtestSetDefaultBeanFactoryNull()
     Tests setting the default bean factory to null.



Method Detail
setUp
protected void setUp() throws Exception(Code)



tearDown
protected void tearDown() throws Exception(Code)



testCreateBean
public void testCreateBean()(Code)
Tests creating a bean. All necessary information is stored in the bean declaration.



testCreateBeanWithDefaultClass
public void testCreateBeanWithDefaultClass()(Code)
Tests creating a bean. The bean's class is specified as the default class argument.



testCreateBeanWithDefaultFactory
public void testCreateBeanWithDefaultFactory()(Code)
Tests creating a bean using the default bean factory.



testCreateBeanWithException
public void testCreateBeanWithException()(Code)
Tests creating a bean when the factory throws an exception.



testCreateBeanWithFactoryDefaultClass
public void testCreateBeanWithFactoryDefaultClass()(Code)
Tests creating a bean when the bean's class is specified as the default class of the bean factory.



testCreateBeanWithInvalidClass
public void testCreateBeanWithInvalidClass()(Code)
Tries to create a bean with a non existing class. This should cause an exception.



testCreateBeanWithNoClass
public void testCreateBeanWithNoClass()(Code)
Tries to create a bean when no class is provided. This should cause an exception.



testCreateBeanWithNullDeclaration
public void testCreateBeanWithNullDeclaration()(Code)
Tests creating a bean when no bean declaration is provided. This should cause an exception.



testCreateBeanWithParameter
public void testCreateBeanWithParameter()(Code)
Tests if a parameter is correctly passed to the bean factory.



testCreateBeanWithUnknownFactory
public void testCreateBeanWithUnknownFactory()(Code)
Tests creating a bean using a non registered factory.



testDeregisterBeanFactory
public void testDeregisterBeanFactory()(Code)
Tests to deregister a bean factory.



testGetDefaultBeanFactory
public void testGetDefaultBeanFactory()(Code)
Tests whether the default bean factory is correctly initialized.



testInitBean
public void testInitBean()(Code)
Tests initializing a bean.



testInitBeanWithInvalidProperty
public void testInitBeanWithInvalidProperty()(Code)
Tries to initialize a bean with a bean declaration that contains an invalid property value. This should cause an exception.



testInitBeanWithNoData
public void testInitBeanWithNoData()(Code)
Tests initializing a bean when the bean declaration does not contain any data.



testRegisterBeanFactory
public void testRegisterBeanFactory()(Code)
Tests registering a new bean factory.



testRegisterBeanFactoryNull
public void testRegisterBeanFactoryNull()(Code)
Tries to register a null factory. This should cause an exception.



testRegisterBeanFactoryNullName
public void testRegisterBeanFactoryNullName()(Code)
Tries to register a bean factory with a null name. This should cause an exception.



testSetDefaultBeanFactoryNull
public void testSetDefaultBeanFactoryNull()(Code)
Tests setting the default bean factory to null. This should caus an exception.



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