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

TestDefaultConfigurationBuilder
public class TestDefaultConfigurationBuilder extends TestCase (Code)
Test class for DefaultConfigurationBuilder.
author:
   Oliver Heger
version:
   $Id: TestDefaultConfigurationBuilder.java 384601 2006-03-09
version:
   20:22:58Z oheger $


Field Summary
 DefaultConfigurationBuilderfactory
     Stores the object to be tested.


Method Summary
protected  voidsetUp()
    
public  voidtestAddConfigurationProvider()
     Tests adding a new configuration provider.
public  voidtestAddConfigurationProviderNull()
     Tries to register a null configuration provider.
public  voidtestAddConfigurationProviderNullTag()
     Tries to register a configuration provider for a null tag.
public  voidtestCombinedConfiguration()
     Tests if the returned combined configuration has the expected structure.
public  voidtestCombinedConfigurationListNodes()
     Tests whether the list node definition was correctly processed.
public  voidtestCombinedConfigurationNoAdditional()
     Tests the structure of the returned combined configuration if there is no additional section.
public  voidtestComplexInitialization()
     Tests reading a configuration definition file that contains complex initialization of properties of the declared configuration sources.
public  voidtestConfigurationBeanFactoryCreateBean()
     Tests creating a configuration object from a configuration declaration.
public  voidtestConfigurationBeanFactoryCreateUnknownTag()
     Tests creating a configuration object from an unknown tag.
public  voidtestConfigurationBuilderProvider()
     Tests whether a configuration builder can itself be declared in a configuration definition file.
public  voidtestConfigurationDeclarationGetAttributes()
     Tests access to certain reserved attributes of a ConfigurationDeclaration.
public  voidtestConfigurationDeclarationIsReserved()
     Tests the isReservedNode() method of ConfigurationDeclaration.
public  voidtestConfigurationDeclarationIsReservedAt()
     Tests if the at attribute is correctly detected as reserved attribute.
public  voidtestConfigurationDeclarationIsReservedOptional()
     Tests if the optional attribute is correctly detected as reserved attribute.
public  voidtestLoadAdditional()
     Tests loading a configuration definition file with an additional section.
public  voidtestLoadConfiguration()
     Tests loading a simple configuration definition file.
public  voidtestLoadConfigurationFromFile()
     Tests the file constructor.
public  voidtestLoadConfigurationFromFileName()
     Tests the file name constructor.
public  voidtestLoadConfigurationFromURL()
     Tests the URL constructor.
public  voidtestLoadDifferentSources()
     Tests loading a definition file with multiple different sources.
public  voidtestLoadOptional()
     Tests loading a definition file that contains optional configurations.
public  voidtestLoadOptionalBuilderForceCreate()
     Tests loading an embedded optional configuration builder with the force create attribute.
public  voidtestLoadOptionalForceCreate()
     Tests an optional, non existing configuration with the forceCreate attribute.
public  voidtestLoadOptionalForceCreateWithException()
     Tests loading an optional configuration with the force create attribute set.
public  voidtestLoadOptionalNonFileBased()
     Tries to load a configuration file with an optional, non file-based configuration.
public  voidtestLoadOptionalWithException()
     Tests loading a definition file with optional and non optional configuration sources.
public  voidtestRemoveConfigurationProvider()
     Tests removing configuration providers.
public  voidtestSetConfigurationBasePath()
     Tests if the base path is correctly evaluated.

Field Detail
factory
DefaultConfigurationBuilder factory(Code)
Stores the object to be tested.





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



testAddConfigurationProvider
public void testAddConfigurationProvider()(Code)
Tests adding a new configuration provider.



testAddConfigurationProviderNull
public void testAddConfigurationProviderNull()(Code)
Tries to register a null configuration provider. This should cause an exception.



testAddConfigurationProviderNullTag
public void testAddConfigurationProviderNullTag()(Code)
Tries to register a configuration provider for a null tag. This should cause an exception to be thrown.



testCombinedConfiguration
public void testCombinedConfiguration() throws ConfigurationException(Code)
Tests if the returned combined configuration has the expected structure.



testCombinedConfigurationListNodes
public void testCombinedConfigurationListNodes() throws ConfigurationException(Code)
Tests whether the list node definition was correctly processed.



testCombinedConfigurationNoAdditional
public void testCombinedConfigurationNoAdditional() throws ConfigurationException(Code)
Tests the structure of the returned combined configuration if there is no additional section.



testComplexInitialization
public void testComplexInitialization() throws ConfigurationException(Code)
Tests reading a configuration definition file that contains complex initialization of properties of the declared configuration sources.



testConfigurationBeanFactoryCreateBean
public void testConfigurationBeanFactoryCreateBean()(Code)
Tests creating a configuration object from a configuration declaration.



testConfigurationBeanFactoryCreateUnknownTag
public void testConfigurationBeanFactoryCreateUnknownTag()(Code)
Tests creating a configuration object from an unknown tag. This should cause an exception.



testConfigurationBuilderProvider
public void testConfigurationBuilderProvider() throws ConfigurationException(Code)
Tests whether a configuration builder can itself be declared in a configuration definition file.



testConfigurationDeclarationGetAttributes
public void testConfigurationDeclarationGetAttributes()(Code)
Tests access to certain reserved attributes of a ConfigurationDeclaration.



testConfigurationDeclarationIsReserved
public void testConfigurationDeclarationIsReserved()(Code)
Tests the isReservedNode() method of ConfigurationDeclaration.



testConfigurationDeclarationIsReservedAt
public void testConfigurationDeclarationIsReservedAt()(Code)
Tests if the at attribute is correctly detected as reserved attribute.



testConfigurationDeclarationIsReservedOptional
public void testConfigurationDeclarationIsReservedOptional()(Code)
Tests if the optional attribute is correctly detected as reserved attribute.



testLoadAdditional
public void testLoadAdditional() throws ConfigurationException(Code)
Tests loading a configuration definition file with an additional section.



testLoadConfiguration
public void testLoadConfiguration() throws ConfigurationException(Code)
Tests loading a simple configuration definition file.



testLoadConfigurationFromFile
public void testLoadConfigurationFromFile() throws ConfigurationException(Code)
Tests the file constructor.



testLoadConfigurationFromFileName
public void testLoadConfigurationFromFileName() throws ConfigurationException(Code)
Tests the file name constructor.



testLoadConfigurationFromURL
public void testLoadConfigurationFromURL() throws Exception(Code)
Tests the URL constructor.



testLoadDifferentSources
public void testLoadDifferentSources() throws ConfigurationException(Code)
Tests loading a definition file with multiple different sources.



testLoadOptional
public void testLoadOptional() throws Exception(Code)
Tests loading a definition file that contains optional configurations.



testLoadOptionalBuilderForceCreate
public void testLoadOptionalBuilderForceCreate() throws ConfigurationException(Code)
Tests loading an embedded optional configuration builder with the force create attribute.



testLoadOptionalForceCreate
public void testLoadOptionalForceCreate() throws ConfigurationException(Code)
Tests an optional, non existing configuration with the forceCreate attribute. This configuration should be added to the resulting configuration.



testLoadOptionalForceCreateWithException
public void testLoadOptionalForceCreateWithException() throws ConfigurationException(Code)
Tests loading an optional configuration with the force create attribute set. The provider will always throw an exception. In this case the configuration will not be added to the resulting combined configuration.



testLoadOptionalNonFileBased
public void testLoadOptionalNonFileBased() throws ConfigurationException(Code)
Tries to load a configuration file with an optional, non file-based configuration. The optional attribute should work for other configuration classes, too.



testLoadOptionalWithException
public void testLoadOptionalWithException()(Code)
Tests loading a definition file with optional and non optional configuration sources. One non optional does not exist, so this should cause an exception.



testRemoveConfigurationProvider
public void testRemoveConfigurationProvider()(Code)
Tests removing configuration providers.



testSetConfigurationBasePath
public void testSetConfigurationBasePath() throws ConfigurationException(Code)
Tests if the base path is correctly evaluated.



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