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


org.apache.commons.configuration.TestCombinedConfiguration

TestCombinedConfiguration
public class TestCombinedConfiguration extends TestCase (Code)
Test class for CombinedConfiguration.
version:
   $Id: TestCombinedConfiguration.java 484692 2006-12-08 18:30:15Z oheger $

Inner Class :static class CombinedListener implements ConfigurationListener

Field Summary
final static  StringTEST_KEY
     Constant for a test key.
final static  StringTEST_NAME
     Constant for the name of a sub configuration.
 CombinedConfigurationconfig
     The configuration to be tested.
 CombinedListenerlistener
     The test event listener.


Method Summary
protected  voidsetUp()
    
public  voidtestAccessPropertyEmpty()
     Tests accessing properties if no configurations have been added.
public  voidtestAccessPropertyMulti()
     Tests accessing properties if multiple configurations have been added.
public  voidtestAddConfiguration()
     Tests adding a configuration (without further information).
public  voidtestAddConfigurationAt()
     Tests adding a configuration and specifying an at position.
public  voidtestAddConfigurationComplexAt()
     Tests adding a configuration with a complex at position.
public  voidtestAddConfigurationWithName()
     Tests adding a configuration with a name.
public  voidtestAddConfigurationWithNameTwice()
     Tests adding a configuration with a name when this name already exists.
public  voidtestAddNullConfiguration()
     Tests adding a null configuration.
public  voidtestClear()
     Tests clearing a combined configuration.
public  voidtestClone()
     Tests cloning a combined configuration.
public  voidtestCloneModify()
     Tests if the cloned configuration is decoupled from the original.
public  voidtestInit()
     Tests accessing a newly created combined configuration.
public  voidtestReloading()
     Tests if file-based configurations can be reloaded.
public  voidtestRemoveConfiguration()
     Tests removing a configuration.
public  voidtestRemoveConfigurationAt()
     Tests removing a configuration by index.
public  voidtestRemoveConfigurationByName()
     Tests removing a configuration by name.
public  voidtestRemoveConfigurationByUnknownName()
     Tests removing a configuration by name, which is not contained.
public  voidtestRemoveNamedConfiguration()
     Tests removing a configuration with a name.
public  voidtestRemoveNamedConfigurationAt()
     Tests removing a named configuration by index.
public  voidtestRemoveNonContainedConfiguration()
     Tests removing a configuration that was not added prior.
public  voidtestSetNodeCombiner()
     Tests if setting a node combiner causes an invalidation.
public  voidtestSetNullNodeCombiner()
     Tests setting a null node combiner.
public  voidtestUpdateContainedConfiguration()
     Tests if an update of a contained configuration leeds to an invalidation of the combined configuration.

Field Detail
TEST_KEY
final static String TEST_KEY(Code)
Constant for a test key.



TEST_NAME
final static String TEST_NAME(Code)
Constant for the name of a sub configuration.



config
CombinedConfiguration config(Code)
The configuration to be tested.



listener
CombinedListener listener(Code)
The test event listener.





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



testAccessPropertyEmpty
public void testAccessPropertyEmpty()(Code)
Tests accessing properties if no configurations have been added.



testAccessPropertyMulti
public void testAccessPropertyMulti()(Code)
Tests accessing properties if multiple configurations have been added.



testAddConfiguration
public void testAddConfiguration()(Code)
Tests adding a configuration (without further information).



testAddConfigurationAt
public void testAddConfigurationAt()(Code)
Tests adding a configuration and specifying an at position.



testAddConfigurationComplexAt
public void testAddConfigurationComplexAt()(Code)
Tests adding a configuration with a complex at position. Here the at path contains a dot, which must be escaped.



testAddConfigurationWithName
public void testAddConfigurationWithName()(Code)
Tests adding a configuration with a name.



testAddConfigurationWithNameTwice
public void testAddConfigurationWithNameTwice()(Code)
Tests adding a configuration with a name when this name already exists. This should cause an exception.



testAddNullConfiguration
public void testAddNullConfiguration()(Code)
Tests adding a null configuration. This should cause an exception to be thrown.



testClear
public void testClear()(Code)
Tests clearing a combined configuration. This should remove all contained configurations.



testClone
public void testClone()(Code)
Tests cloning a combined configuration.



testCloneModify
public void testCloneModify()(Code)
Tests if the cloned configuration is decoupled from the original.



testInit
public void testInit()(Code)
Tests accessing a newly created combined configuration.



testReloading
public void testReloading() throws Exception(Code)
Tests if file-based configurations can be reloaded.



testRemoveConfiguration
public void testRemoveConfiguration()(Code)
Tests removing a configuration.



testRemoveConfigurationAt
public void testRemoveConfigurationAt()(Code)
Tests removing a configuration by index.



testRemoveConfigurationByName
public void testRemoveConfigurationByName()(Code)
Tests removing a configuration by name.



testRemoveConfigurationByUnknownName
public void testRemoveConfigurationByUnknownName()(Code)
Tests removing a configuration by name, which is not contained.



testRemoveNamedConfiguration
public void testRemoveNamedConfiguration()(Code)
Tests removing a configuration with a name.



testRemoveNamedConfigurationAt
public void testRemoveNamedConfigurationAt()(Code)
Tests removing a named configuration by index.



testRemoveNonContainedConfiguration
public void testRemoveNonContainedConfiguration()(Code)
Tests removing a configuration that was not added prior.



testSetNodeCombiner
public void testSetNodeCombiner()(Code)
Tests if setting a node combiner causes an invalidation.



testSetNullNodeCombiner
public void testSetNullNodeCombiner()(Code)
Tests setting a null node combiner. This should cause an exception.



testUpdateContainedConfiguration
public void testUpdateContainedConfiguration()(Code)
Tests if an update of a contained configuration leeds to an invalidation of the combined configuration.



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