org.apache.commons.configuration
Class TestHierarchicalXMLConfiguration

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

public class TestHierarchicalXMLConfiguration
extends junit.framework.TestCase

Test class for XMLConfiguration. In addition to TestXMLConfiguration this class especially tests the hierarchical nature of this class and structured data access.

Version:
$Id: TestHierarchicalXMLConfiguration.java 439648 2006-09-02 20:42:10Z oheger $
Author:
Emmanuel Bourg, Mark Woodman, Oliver Heger

Constructor Summary
TestHierarchicalXMLConfiguration()
           
 
Method Summary
protected  void setUp()
          Fixture setup.
 void testGetProperty()
           
 void testLoadBasePath1()
           
 void testLoadBasePath2()
           
 void testLoadURL()
           
 void testRootElement()
          Tests manipulation of the root element's name.
 void testSave()
           
 void testSaveModified()
          Tests to save a modified configuration.
 void testSaveNew()
          Tests to save a newly created configuration.
 void testXmlNodeTypes()
          Ensure various node types are correctly processed in config.
 
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

TestHierarchicalXMLConfiguration

public TestHierarchicalXMLConfiguration()
Method Detail

setUp

protected void setUp()
              throws java.lang.Exception
Fixture setup.

Overrides:
setUp in class junit.framework.TestCase
Throws:
java.lang.Exception

testGetProperty

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

testLoadURL

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

testLoadBasePath1

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

testLoadBasePath2

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

testXmlNodeTypes

public void testXmlNodeTypes()
                      throws java.lang.Exception
Ensure various node types are correctly processed in config.

Throws:
java.lang.Exception

testSave

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

testSaveNew

public void testSaveNew()
                 throws java.lang.Exception
Tests to save a newly created configuration.

Throws:
java.lang.Exception

testSaveModified

public void testSaveModified()
                      throws java.lang.Exception
Tests to save a modified configuration.

Throws:
java.lang.Exception

testRootElement

public void testRootElement()
                     throws java.lang.Exception
Tests manipulation of the root element's name.

Throws:
java.lang.Exception


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