org.apache.commons.configuration.web
Class TestAppletConfiguration

java.lang.Object
  extended by org.apache.commons.configuration.TestAbstractConfiguration
      extended by org.apache.commons.configuration.web.TestAppletConfiguration

public class TestAppletConfiguration
extends TestAbstractConfiguration

Test case for the AppletConfiguration class.

Version:
$Id: TestAppletConfiguration.java 1222465 2011-12-22 21:32:56Z oheger $
Author:
Emmanuel Bourg

Constructor Summary
TestAppletConfiguration()
           
 
Method Summary
protected  AbstractConfiguration getConfiguration()
          Return an abstract configuration with the following data:
key1 = value1 key2 = value2 list = value1, value2 listesc = value1\\,value2
protected  AbstractConfiguration getEmptyConfiguration()
          Return an empty configuration.
 void setUp()
          Initializes the tests.
 void testAddPropertyDirect()
           
 void testClearProperty()
           
 
Methods inherited from class org.apache.commons.configuration.TestAbstractConfiguration
testContainsKey, testGetBigIntegerConversion, testGetKeys, testGetProperty, testIsEmpty, testList, testListEscaped, testSetLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestAppletConfiguration

public TestAppletConfiguration()
Method Detail

setUp

public void setUp()
           throws Exception
Initializes the tests. This implementation checks whether an applet can be used. Some environments, which do not support a GUI, don't allow creating an Applet instance. If we are in such an environment, some tests need to behave differently or be completely dropped.

Throws:
Exception

getConfiguration

protected AbstractConfiguration getConfiguration()
Description copied from class: TestAbstractConfiguration
Return an abstract configuration with the following data:
 key1 = value1
 key2 = value2
 list = value1, value2
 listesc = value1\\,value2
 

Specified by:
getConfiguration in class TestAbstractConfiguration

getEmptyConfiguration

protected AbstractConfiguration getEmptyConfiguration()
Description copied from class: TestAbstractConfiguration
Return an empty configuration.

Specified by:
getEmptyConfiguration in class TestAbstractConfiguration

testAddPropertyDirect

public void testAddPropertyDirect()
Overrides:
testAddPropertyDirect in class TestAbstractConfiguration

testClearProperty

public void testClearProperty()
Overrides:
testClearProperty in class TestAbstractConfiguration


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