1 27 package org.htmlparser.tests; 28 29 import junit.framework.TestSuite; 30 31 import org.htmlparser.tests.ParserTestCase; 32 33 public class AllTests extends ParserTestCase 34 { 35 static 36 { 37 System.setProperty ("org.htmlparser.tests.AllTests", "AllTests"); 38 } 39 40 public AllTests(String name) { 41 super(name); 42 } 43 44 public static TestSuite suite() 45 { 46 TestSuite suite; 47 TestSuite sub; 48 49 suite = new TestSuite ("HTMLParser Tests"); 50 sub = new TestSuite ("Basic Tests"); 51 sub.addTestSuite (ParserTest.class); 52 sub.addTestSuite (AssertXmlEqualsTest.class); 53 sub.addTestSuite (FunctionalTests.class); 54 sub.addTestSuite (LineNumberAssignedByNodeReaderTest.class); 55 sub.addTestSuite (MemoryTest.class); 56 suite.addTest (sub); 57 suite.addTest (org.htmlparser.tests.lexerTests.AllTests.suite ()); 58 suite.addTest (org.htmlparser.tests.scannersTests.AllTests.suite ()); 59 suite.addTest (org.htmlparser.tests.utilTests.AllTests.suite ()); 60 suite.addTest (org.htmlparser.tests.tagTests.AllTests.suite ()); 61 suite.addTest (org.htmlparser.tests.visitorsTests.AllTests.suite ()); 62 suite.addTest (org.htmlparser.tests.parserHelperTests.AllTests.suite ()); 63 suite.addTest (org.htmlparser.tests.nodeDecoratorTests.AllTests.suite ()); 64 suite.addTestSuite (org.htmlparser.tests.filterTests.FilterTest.class); 65 66 return (suite); 67 } 68 } 69 70 | Popular Tags |