org.apache.commons.configuration
Class TestEnvironmentConfiguration

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

public class TestEnvironmentConfiguration
extends Object

Test class for EnvironmentConfiguration.

Version:
$Id: TestEnvironmentConfiguration.java 1224637 2011-12-25 19:47:21Z oheger $
Author:
Commons Configuration team

Constructor Summary
TestEnvironmentConfiguration()
           
 
Method Summary
 void setUp()
           
 void testAddProperty()
          Tries to add another property.
 void testClear()
          Tests removing all properties.
 void testClearProperty()
          Tests removing properties.
 void testInit()
          Tests whether a newly created configuration contains some properties.
 void testSetProperty()
          Tries to set the value of a property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestEnvironmentConfiguration

public TestEnvironmentConfiguration()
Method Detail

setUp

public void setUp()
           throws Exception
Throws:
Exception

testInit

public void testInit()
Tests whether a newly created configuration contains some properties. (We expect that at least some properties are set in each environment.)


testClearProperty

public void testClearProperty()
Tests removing properties. This should not be possible.


testClear

public void testClear()
Tests removing all properties. This should not be possible.


testAddProperty

public void testAddProperty()
Tries to add another property. This should cause an exception.


testSetProperty

public void testSetProperty()
Tries to set the value of a property. This should cause an exception.



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