|
||||||||||
| 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(org.apache.commons.configuration.AbstractConfiguration config)
Tests accessing and manipulating the interpolator object. |
static org.apache.commons.configuration.Configuration |
testInterpolatedConfiguration(org.apache.commons.configuration.AbstractConfiguration config)
Tests obtaining a configuration with all variables replaced by their actual values. |
static void |
testInterpolation(org.apache.commons.configuration.Configuration config)
Tests basic interpolation facilities of the specified configuration. |
static void |
testInterpolationConstants(org.apache.commons.configuration.Configuration config)
Tests interpolation of constant values. |
static void |
testInterpolationEscaped(org.apache.commons.configuration.Configuration config)
Tests whether a variable can be escaped, so that it won't be interpolated. |
static void |
testInterpolationLoop(org.apache.commons.configuration.Configuration config)
Tests an invalid interpolation that results in an infinite loop. |
static void |
testInterpolationSubset(org.apache.commons.configuration.Configuration config)
Tests interpolation when a subset configuration is involved. |
static void |
testInterpolationSystemProperties(org.apache.commons.configuration.Configuration config)
Tests interpolation of system properties. |
static void |
testInterpolationUnknownProperty(org.apache.commons.configuration.Configuration config)
Tests interpolation when the referred property is not found. |
static void |
testMultipleInterpolation(org.apache.commons.configuration.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(org.apache.commons.configuration.Configuration config)
config - the configuration to testpublic static void testMultipleInterpolation(org.apache.commons.configuration.Configuration config)
config - the configuration to testpublic static void testInterpolationLoop(org.apache.commons.configuration.Configuration config)
config - the configuration to testpublic static void testInterpolationSubset(org.apache.commons.configuration.Configuration config)
config - the configuration to testpublic static void testInterpolationUnknownProperty(org.apache.commons.configuration.Configuration config)
config - the configuration to testpublic static void testInterpolationSystemProperties(org.apache.commons.configuration.Configuration config)
config - the configuration to testpublic static void testInterpolationConstants(org.apache.commons.configuration.Configuration config)
config - the configuration to testpublic static void testInterpolationEscaped(org.apache.commons.configuration.Configuration config)
config - the configuration to testpublic static void testGetInterpolator(org.apache.commons.configuration.AbstractConfiguration config)
config - the configuration to testpublic static org.apache.commons.configuration.Configuration testInterpolatedConfiguration(org.apache.commons.configuration.AbstractConfiguration config)
config - the configuration to test
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||