org.apache.commons.configuration
Class TestConfigurationFactory

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.commons.configuration.TestConfigurationFactory
All Implemented Interfaces:
junit.framework.Test

public class TestConfigurationFactory
extends junit.framework.TestCase

Test the ConfigurationFactory.

Version:
$Id: TestConfigurationFactory.java 570916 2007-08-29 20:05:46Z oheger $

Constructor Summary
TestConfigurationFactory()
           
 
Method Summary
 void setUp()
           
 void testAllConfiguration()
           
 void testBasePath()
           
 void testJNDI()
           
 void testLoadAbsolutePath()
           
 void testLoadingAdditional()
           
 void testLoadingConfiguration()
           
 void testLoadingConfigurationBasePath()
           
 void testLoadingConfigurationNamespaceAware()
           
 void testLoadingConfigurationReverseOrder()
           
 void testLoadingConfigurationWithRulesXML()
           
 void testLoadingURL()
           
 void testLoadingWithSystemProperties()
           
 void testLoadInitProperties()
           
 void testOptionalConfigurations()
           
 void testThrowingConfigurationInitializationException()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TestConfigurationFactory

public TestConfigurationFactory()
Method Detail

setUp

public void setUp()
           throws java.lang.Exception
Overrides:
setUp in class junit.framework.TestCase
Throws:
java.lang.Exception

testJNDI

public void testJNDI()
              throws java.lang.Exception
Throws:
java.lang.Exception

testLoadingConfiguration

public void testLoadingConfiguration()
                              throws java.lang.Exception
Throws:
java.lang.Exception

testLoadingConfigurationWithRulesXML

public void testLoadingConfigurationWithRulesXML()
                                          throws java.lang.Exception
Throws:
java.lang.Exception

testLoadingConfigurationReverseOrder

public void testLoadingConfigurationReverseOrder()
                                          throws java.lang.Exception
Throws:
java.lang.Exception

testLoadingConfigurationNamespaceAware

public void testLoadingConfigurationNamespaceAware()
                                            throws java.lang.Exception
Throws:
java.lang.Exception

testLoadingConfigurationBasePath

public void testLoadingConfigurationBasePath()
                                      throws java.lang.Exception
Throws:
java.lang.Exception

testLoadingAdditional

public void testLoadingAdditional()
                           throws java.lang.Exception
Throws:
java.lang.Exception

testLoadingURL

public void testLoadingURL()
                    throws java.lang.Exception
Throws:
java.lang.Exception

testThrowingConfigurationInitializationException

public void testThrowingConfigurationInitializationException()
                                                      throws java.lang.Exception
Throws:
java.lang.Exception

testAllConfiguration

public void testAllConfiguration()
                          throws java.lang.Exception
Throws:
java.lang.Exception

testOptionalConfigurations

public void testOptionalConfigurations()
                                throws java.lang.Exception
Throws:
java.lang.Exception

testLoadAbsolutePath

public void testLoadAbsolutePath()
                          throws java.lang.Exception
Throws:
java.lang.Exception

testBasePath

public void testBasePath()
                  throws java.lang.Exception
Throws:
java.lang.Exception

testLoadingWithSystemProperties

public void testLoadingWithSystemProperties()
                                     throws org.apache.commons.configuration.ConfigurationException
Throws:
org.apache.commons.configuration.ConfigurationException

testLoadInitProperties

public void testLoadInitProperties()
                            throws org.apache.commons.configuration.ConfigurationException
Throws:
org.apache.commons.configuration.ConfigurationException


Copyright © 2001-2008 The Apache Software Foundation. All Rights Reserved.