org.apache.commons.configuration
Class TestEqualBehaviour

java.lang.Object
  extended by org.apache.commons.configuration.TestEqualBehaviour

public class TestEqualBehaviour
extends Object

Compare the behavior of various methods between CompositeConfiguration and normal (Properties) Configuration

Version:
$Id: TestEqualBehaviour.java 1224638 2011-12-25 19:51:09Z oheger $

Constructor Summary
TestEqualBehaviour()
           
 
Method Summary
 void testAddingSet()
          If we add a to an existing key, does it work?
 void testAddingUnset()
          If we add a key, does it work?
 void testDeletingExisting()
          If we delete a key, does it vanish?
 void testDeletingNonExisting()
           
 void testLoading()
          Are both configurations equal after loading?
 void testSettingExisting()
           
 void testSettingNonExisting()
          If we set a key, does it work?
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestEqualBehaviour

public TestEqualBehaviour()
Method Detail

testLoading

public void testLoading()
                 throws Exception
Are both configurations equal after loading?

Throws:
Exception

testDeletingExisting

public void testDeletingExisting()
                          throws Exception
If we delete a key, does it vanish? Does it leave all the other keys unchanged? How about an unset key?

Throws:
Exception

testDeletingNonExisting

public void testDeletingNonExisting()
                             throws Exception
Throws:
Exception

testSettingNonExisting

public void testSettingNonExisting()
                            throws Exception
If we set a key, does it work? How about an existing key? Can we change it?

Throws:
Exception

testSettingExisting

public void testSettingExisting()
                         throws Exception
Throws:
Exception

testAddingUnset

public void testAddingUnset()
                     throws Exception
If we add a key, does it work?

Throws:
Exception

testAddingSet

public void testAddingSet()
                   throws Exception
If we add a to an existing key, does it work?

Throws:
Exception


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