public class VariableExpansionTestCase extends Object
Test Case for the variable expansion facility in Digester.
Constructor and Description |
---|
VariableExpansionTestCase() |
Modifier and Type | Method and Description |
---|---|
void |
addProperty(String key,
String value)
Used in test case "testExpansionWithMutableSource", where the set of variables available to be substituted into
the xml is updated as the xml is parsed.
|
void |
addSimpleTestBean(SimpleTestBean bean) |
void |
testBodyExpansion()
Test expansion of text in element bodies.
|
void |
testExpansionException()
Test that an unknown variable causes a RuntimeException.
|
void |
testExpansionOfPropertyInProperty()
Second of two tests added to verify that the substitution framework is capable of processing Ant-like properties.
|
void |
testExpansionWithMultipleSources()
Test that a MultiVariableExpander with multiple sources works.
|
void |
testExpansionWithMutableSource()
First of two tests added to verify that the substitution framework is capable of processing Ant-like properties.
|
void |
testExpansionWithNoSource()
Test that a MultiVariableExpander with no sources does no expansion.
|
void |
testNoExpansion()
Test that by default no expansion occurs.
|
public VariableExpansionTestCase()
public void addSimpleTestBean(SimpleTestBean bean)
public void addProperty(String key, String value)
public void testNoExpansion() throws SAXException, IOException
SAXException
IOException
public void testExpansionWithNoSource() throws SAXException, IOException
SAXException
IOException
public void testExpansionWithMultipleSources() throws SAXException, IOException
SAXException
IOException
public void testBodyExpansion() throws SAXException, IOException
SAXException
IOException
public void testExpansionException() throws IOException
IOException
public void testExpansionWithMutableSource() throws SAXException, IOException
IOException
SAXException
public void testExpansionOfPropertyInProperty() throws SAXException, IOException
IOException
SAXException
Copyright © 2001-2013 The Apache Software Foundation. All Rights Reserved.