1 16 17 package org.apache.commons.latka.junit; 18 19 import junit.framework.Test; 20 import junit.framework.TestCase; 21 import junit.framework.TestSuite; 22 23 27 public class TestAll extends TestCase { 28 29 public TestAll(String testName) { 30 super(testName); 31 } 32 33 public static Test suite() { 34 TestSuite suite = new TestSuite(); 35 suite.addTest(TestJUnitEventReporter.suite()); 36 suite.addTest(TestJUnitTestAdapter.suite()); 37 String baseDir = System.getProperty("basedir"); 38 assertNotNull("The system property basedir was not defined.", baseDir); 39 String fs = System.getProperty("file.separator"); 40 assertNotNull("The system property file.separator was not defined.", fs); 41 String fileName = baseDir + fs + "src/distribution/tests/samples/TestCommonsWebsite.xml"; 42 suite.addTest(JUnitTestAdapter.createTestFromFile(fileName)); 43 return suite; 44 } 45 46 public static void main(String args[]) { 47 String [] testCaseName = { TestAll.class.getName() }; 48 junit.textui.TestRunner.main(testCaseName); 49 } 50 } 51 | Popular Tags |