|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.configuration.InterpolationTestHelper
public class InterpolationTestHelper
A helper class that defines a bunch of tests related to variable interpolation. It can be used for running these tests on different configuration implementations.
Constructor Summary | |
---|---|
InterpolationTestHelper()
|
Method Summary | |
---|---|
static void |
testGetInterpolator(AbstractConfiguration config)
Tests accessing and manipulating the interpolator object. |
static Configuration |
testInterpolatedConfiguration(AbstractConfiguration config)
Tests obtaining a configuration with all variables replaced by their actual values. |
static void |
testInterpolation(Configuration config)
Tests basic interpolation facilities of the specified configuration. |
static void |
testInterpolationConstants(Configuration config)
Tests interpolation of constant values. |
static void |
testInterpolationEscaped(Configuration config)
Tests whether a variable can be escaped, so that it won't be interpolated. |
static void |
testInterpolationLoop(Configuration config)
Tests an invalid interpolation that results in an infinite loop. |
static void |
testInterpolationSubset(Configuration config)
Tests interpolation when a subset configuration is involved. |
static void |
testInterpolationSystemProperties(Configuration config)
Tests interpolation of system properties. |
static void |
testInterpolationUnknownProperty(Configuration config)
Tests interpolation when the referred property is not found. |
static void |
testMultipleInterpolation(Configuration config)
Tests an interpolation over multiple levels (i.e. the replacement of a variable is another variable and so on). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InterpolationTestHelper()
Method Detail |
---|
public static void testInterpolation(Configuration config)
config
- the configuration to testpublic static void testMultipleInterpolation(Configuration config)
config
- the configuration to testpublic static void testInterpolationLoop(Configuration config)
config
- the configuration to testpublic static void testInterpolationSubset(Configuration config)
config
- the configuration to testpublic static void testInterpolationUnknownProperty(Configuration config)
config
- the configuration to testpublic static void testInterpolationSystemProperties(Configuration config)
config
- the configuration to testpublic static void testInterpolationConstants(Configuration config)
config
- the configuration to testpublic static void testInterpolationEscaped(Configuration config)
config
- the configuration to testpublic static void testGetInterpolator(AbstractConfiguration config)
config
- the configuration to testpublic static Configuration testInterpolatedConfiguration(AbstractConfiguration config)
config
- the configuration to test
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |