Save This Page
Home » commons-digester-1.8-src » org.apache.commons » digester » [javadoc | source]
org.apache.commons.digester
public class: DigesterTestCase [javadoc | source]
java.lang.Object
   junit.framework.TestCase
      org.apache.commons.digester.DigesterTestCase

Test Case for the Digester class. These tests exercise the individual methods of a Digester, but do not attempt to process complete documents.

Field Summary
protected  Digester digester    The digester instance we will be processing. 
protected static final  String[] registrations    The set of public identifiers, and corresponding resource names, for the versions of the DTDs that we know about. There MUST be an even number of Strings in this array. 
Constructor:
 public DigesterTestCase(String name) 
    Construct a new instance of this test case.
    Parameters:
    name - Name of the test case
Method from org.apache.commons.digester.DigesterTestCase Summary:
setUp,   suite,   tearDown,   testBasicSubstitution,   testGetRoot,   testNamedIndependence,   testNamedStackIsEmpty,   testNamedStackPushPeekPop,   testOnceAndOnceOnly,   testPopNamedStackNotPushed,   testProperties,   testRegistrations,   testRules,   testRulesBase,   testStackMethods
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.commons.digester.DigesterTestCase Detail:
 public  void setUp() 
    Set up instance variables required by this test case.
 public static Test suite() 
    Return the tests included in this test suite.
 public  void tearDown() 
    Tear down instance variables required by this test case.
 public  void testBasicSubstitution() throws Exception 
 public  void testGetRoot() throws Exception 
    Test the Digester.getRoot method.
 public  void testNamedIndependence() 
    Tests that values are stored independently
 public  void testNamedStackIsEmpty() 
    Tests for isEmpty
 public  void testNamedStackPushPeekPop() throws Exception 
    Tests the push-peek-pop cycle for a named stack
 public  void testOnceAndOnceOnly() throws Exception 
 public  void testPopNamedStackNotPushed() 
    Tests popping named stack not yet pushed
 public  void testProperties() 
    Test the basic property getters and setters.
 public  void testRegistrations() 
    Test registration of URLs for specified public identifiers.
 public  void testRules() 
    Basic test for rule creation and matching.
 public  void testRulesBase() 

    Test matching rules in RulesBase .

    Tests:

    • exact match
    • tail match
    • longest pattern rule
 public  void testStackMethods() 
    Test the basic stack mechanisms.