1 53 package test.xmldb; 54 55 import junit.framework.*; 56 import junit.textui.TestRunner; 57 import test.xmldb.levelzero.LevelZeroTest; 58 import test.xmldb.other.CollectionTest; 59 import test.xmldb.other.ResourceTest; 60 import test.xmldb.other.ConnectionTest; 61 import org.apache.log4j.BasicConfigurator; 62 import org.apache.log4j.Category; 63 import org.apache.log4j.Level; 64 65 public class XMLDBTestSuite extends TestCase { 66 public static String propertiesFileName; 67 68 public static void main( String args[] ) throws Exception { 69 BasicConfigurator.configure(); 71 Category.getRoot().setLevel(Level.INFO); 72 if (args.length > 0) { 74 propertiesFileName = args[0]; 75 } 76 TestRunner.run(suite()); 77 } 78 79 public static Test suite() { 80 TestSuite suite = new TestSuite("All XML:DB Tests"); 81 suite.addTestSuite(CollectionTest.class); 82 suite.addTestSuite(ResourceTest.class); 83 suite.addTestSuite(ConnectionTest.class); 84 suite.addTest(LevelZeroTest.suite()); 85 return suite; 86 } 87 88 public XMLDBTestSuite(String name) { 89 super(name); 90 } 91 } 92 93 | Popular Tags |