org.apache.commons.configuration.web
Class TestAppletConfiguration

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

public class TestAppletConfiguration
extends TestAbstractConfiguration

Test case for the AppletConfiguration class.

Version:
$Revision: 515306 $, $Date: 2005-02-26 13:56:39 +0100 (Sa, 26 Feb 2005) $
Author:
Emmanuel Bourg

Constructor Summary
TestAppletConfiguration()
           
 
Method Summary
protected  org.apache.commons.configuration.AbstractConfiguration getConfiguration()
          Return an abstract configuration with the following data:
protected  org.apache.commons.configuration.AbstractConfiguration getEmptyConfiguration()
          Return an empty configuration.
protected  void setUp()
          Initializes the tests.
 void testAddPropertyDirect()
           
 void testClearProperty()
           
 
Methods inherited from class org.apache.commons.configuration.TestAbstractConfiguration
testContainsKey, testGetKeys, testGetProperty, testIsEmpty, testList, testListEscaped, testSetLogger
 
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

TestAppletConfiguration

public TestAppletConfiguration()
Method Detail

setUp

protected void setUp()
              throws java.lang.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.

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

getConfiguration

protected org.apache.commons.configuration.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 org.apache.commons.configuration.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-2008 The Apache Software Foundation. All Rights Reserved.