1 17 18 19 package org.apache.commons.digester.plugins; 20 21 import junit.framework.Test; 22 import junit.framework.TestCase; 23 import junit.framework.TestSuite; 24 25 import org.apache.commons.digester.Digester; 26 27 30 31 public class TestDelegate extends TestCase { 32 33 public TestDelegate(String name) { 34 super(name); 35 } 36 37 38 public void setUp() {} 39 40 41 public static Test suite() { 42 return (new TestSuite(TestDelegate.class)); 43 } 44 45 46 public void tearDown() {} 47 48 50 public void testDummy() { 51 } 54 55 public void ignoretestDelegate() throws Exception { 56 Digester digester = new Digester(); 61 PluginRules rc = new PluginRules(); 62 digester.setRules(rc); 63 64 DumperRule dr = new DumperRule(); 65 digester.addRule("root", dr); 66 67 try { 68 digester.parse( 69 TestAll.getInputStream(this, "test1.xml")); 70 } 71 catch(Exception e) { 72 throw e; 73 } 74 } 75 } 76 | Popular Tags |