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

Test case for BeanPropertySetterRule. This contains tests for the main applications of the rule and two more general tests of digester functionality used by this rule.
Field Summary
protected static final  String TEST_XML    Simple test xml document used in the tests. 
protected  Digester digester    The digester instance we will be processing. 
Constructor:
 public BeanPropertySetterRuleTestCase(String name) 
    Construct a new instance of this test case.
    Parameters:
    name - Name of the test case
Method from org.apache.commons.digester.BeanPropertySetterRuleTestCase Summary:
setUp,   suite,   tearDown,   testAutomaticallySetProperties,   testDigesterBodyTextStack,   testDigesterRuleCallOrder,   testSetGivenProperty,   testSetUnknownProperty
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.commons.digester.BeanPropertySetterRuleTestCase 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 testAutomaticallySetProperties() throws IOException, SAXException 
    Test that you can successfully automatically set properties.
 public  void testDigesterBodyTextStack() throws IOException, SAXException 
    This is a general digester test but it fits into here pretty well. This tests that the body text stack is functioning correctly.
 public  void testDigesterRuleCallOrder() throws IOException, SAXException 
    This is a general digester test but it fits into here pretty well. This tests that the rule calling order is properly enforced.
 public  void testSetGivenProperty() throws IOException, SAXException 
    Test that you can successfully set a given property
 public  void testSetUnknownProperty() 
    Test that trying to set an unknown property throws an exception.