public class DigesterTestCase extends Object
Test Case for the Digester class. These tests exercise the individual methods of a Digester, but do not attempt to process complete documents.
Modifier and Type | Field and Description |
---|---|
protected Digester |
digester
The digester instance we will be processing.
|
protected static String[] |
registrations
The set of public identifiers, and corresponding resource names, for the versions of the DTDs that we know about.
|
Constructor and Description |
---|
DigesterTestCase() |
Modifier and Type | Method and Description |
---|---|
void |
setUp()
Set up instance variables required by this test case.
|
void |
tearDown()
Tear down instance variables required by this test case.
|
void |
testBasicSubstitution() |
void |
testGetRoot()
Test the Digester.getRoot method.
|
void |
testNamedIndependence()
Tests that values are stored independently
|
void |
testNamedStackIsEmpty()
Tests for isEmpty
|
void |
testNamedStackPushPeekPop()
Tests the push-peek-pop cycle for a named stack
|
void |
testNullFileParse()
Test
null parsing. |
void |
testNullInputSourceParse() |
void |
testNullInputStreamParse() |
void |
testNullReaderParse() |
void |
testNullStringParse() |
void |
testNullURLParse() |
void |
testOnceAndOnceOnly() |
void |
testPopNamedStackNotPushed()
Tests popping named stack not yet pushed
|
void |
testProperties()
Test the basic property getters and setters.
|
void |
testRegistrations()
Test registration of URLs for specified public identifiers.
|
void |
testRules()
Basic test for rule creation and matching.
|
void |
testRulesBase()
Test matching rules in
RulesBase . |
void |
testStackAction()
Test custom StackAction subclasses.
|
void |
testStackMethods()
Test the basic stack mechanisms.
|
protected static final String[] registrations
public DigesterTestCase()
public void setUp()
public void tearDown()
public void testNullFileParse() throws Exception
null
parsing. (should lead to IllegalArgumentException
s)Exception
public void testNullInputSourceParse() throws Exception
Exception
public void testNullInputStreamParse() throws Exception
Exception
public void testNullReaderParse() throws Exception
Exception
public void testNullStringParse() throws Exception
Exception
public void testNullURLParse() throws Exception
Exception
public void testProperties()
public void testRegistrations()
public void testRules()
public void testRulesBase()
public void testStackMethods()
public void testOnceAndOnceOnly() throws Exception
Exception
public void testBasicSubstitution() throws Exception
Exception
public void testNamedStackPushPeekPop() throws Exception
Exception
public void testNamedIndependence()
public void testPopNamedStackNotPushed()
public void testNamedStackIsEmpty()
public void testGetRoot() throws Exception
Exception
public void testStackAction()
Copyright © 2001-2013 The Apache Software Foundation. All Rights Reserved.