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
SAXExceptionIOExceptionpublic void testExpansionWithNoSource() throws SAXException, IOException
SAXExceptionIOExceptionpublic void testExpansionWithMultipleSources() throws SAXException, IOException
SAXExceptionIOExceptionpublic void testBodyExpansion() throws SAXException, IOException
SAXExceptionIOExceptionpublic void testExpansionException() throws IOException
IOExceptionpublic void testExpansionWithMutableSource() throws SAXException, IOException
IOExceptionSAXExceptionpublic void testExpansionOfPropertyInProperty() throws SAXException, IOException
IOExceptionSAXExceptionCopyright © 2001-2013 The Apache Software Foundation. All Rights Reserved.