|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.apache.commons.configuration.TestBaseConfiguration
public class TestBaseConfiguration
Tests some basic functions of the BaseConfiguration class. Missing keys will throw Exceptions
| Field Summary | |
|---|---|
protected org.apache.commons.configuration.BaseConfiguration |
config
|
protected static java.lang.Class |
incompatibleElementException
|
protected static java.lang.Class |
missingElementException
|
| Constructor Summary | |
|---|---|
TestBaseConfiguration()
|
|
| Method Summary | |
|---|---|
protected void |
setUp()
|
void |
testAddProperty()
|
void |
testClone()
Tests cloning a BaseConfiguration. |
void |
testCloneModify()
Tests whether a cloned configuration is decoupled from its original. |
void |
testCommaSeparatedString()
|
void |
testGetBigDecimal()
|
void |
testGetBigInteger()
|
void |
testGetBoolean()
|
void |
testGetByte()
|
void |
testGetDouble()
|
void |
testGetFloat()
|
void |
testGetHexadecimalValue()
|
void |
testGetInterpolatedList()
|
void |
testGetInterpolatedPrimitives()
|
void |
testGetInterpolator()
Tests accessing and manipulating the interpolator object. |
void |
testGetList()
|
void |
testGetLong()
|
void |
testGetProperty()
|
void |
testGetShort()
|
void |
testGetString()
|
void |
testInterpolatedConfiguration()
Tests obtaining a configuration with all variables replaced by their actual values. |
void |
testInterpolation()
|
void |
testInterpolationConstants()
Tests interpolation of constant values. |
void |
testInterpolationEscaped()
Tests whether a variable can be escaped, so that it won't be interpolated. |
void |
testInterpolationLoop()
|
void |
testInterpolationSubset()
Tests interpolation when a subset configuration is involved. |
void |
testInterpolationSystemProperties()
Tests interpolation of system properties. |
void |
testInterpolationUnknownProperty()
Tests interpolation when the referred property is not found. |
void |
testMultipleInterpolation()
|
void |
testNumberConversions()
Tests if conversion between number types is possible. |
void |
testPropertyAccess()
|
void |
testResolveContainerStore()
|
void |
testSubset()
|
void |
testThrowExceptionOnMissing()
|
| 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 |
| Field Detail |
|---|
protected org.apache.commons.configuration.BaseConfiguration config
protected static java.lang.Class missingElementException
protected static java.lang.Class incompatibleElementException
| Constructor Detail |
|---|
public TestBaseConfiguration()
| Method Detail |
|---|
protected void setUp()
throws java.lang.Exception
setUp in class junit.framework.TestCasejava.lang.Exceptionpublic void testThrowExceptionOnMissing()
public void testGetProperty()
public void testGetByte()
public void testGetShort()
public void testGetLong()
public void testGetFloat()
public void testGetDouble()
public void testGetBigDecimal()
public void testGetBigInteger()
public void testGetString()
public void testGetBoolean()
public void testGetList()
public void testGetInterpolatedList()
public void testGetInterpolatedPrimitives()
public void testCommaSeparatedString()
public void testAddProperty()
throws java.lang.Exception
java.lang.Exceptionpublic void testPropertyAccess()
public void testSubset()
public void testInterpolation()
public void testMultipleInterpolation()
public void testInterpolationLoop()
public void testInterpolationSubset()
public void testInterpolationUnknownProperty()
public void testInterpolationSystemProperties()
public void testInterpolationConstants()
public void testInterpolationEscaped()
public void testGetInterpolator()
public void testInterpolatedConfiguration()
public void testGetHexadecimalValue()
public void testResolveContainerStore()
public void testNumberConversions()
public void testClone()
public void testCloneModify()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||