1 17 package org.apache.commons.digester.plugins; 18 19 import junit.framework.Test; 20 import junit.framework.TestCase; 21 import junit.framework.TestSuite; 22 23 import java.io.InputStream ; 24 import java.io.IOException ; 25 26 31 public class TestAll extends TestCase { 32 public TestAll(String testName) { 33 super(testName); 34 } 35 36 44 48 49 public static Test suite() { 50 TestSuite suite = new TestSuite(); 51 suite.addTest(TestXmlRuleInfo.suite()); 52 suite.addTest(TestInline.suite()); 53 suite.addTest(TestDelegate.suite()); 54 suite.addTest(TestDeclaration.suite()); 55 suite.addTest(TestDefaultPlugin.suite()); 56 suite.addTest(TestLocalRules.suite()); 57 suite.addTest(TestRuleInfo.suite()); 58 suite.addTest(TestRecursion.suite()); 59 suite.addTest(TestConfigurablePluginAttributes.suite()); 60 return suite; 61 } 62 63 public static void main(String args[]) { 64 String [] testCaseName = { TestAll.class.getName() }; 65 junit.textui.TestRunner.main(testCaseName); 66 } 67 68 70 79 public static InputStream getInputStream(Object caller, String name) 80 throws IOException { 81 return (caller.getClass().getResourceAsStream 82 ("/org/apache/commons/digester/plugins/" + name)); 83 } 84 } 85 | Popular Tags |