1 25 40 package org.jgrapht; 41 42 import java.util.*; 43 44 import junit.framework.*; 45 46 import org.jgrapht.alg.*; 47 import org.jgrapht.generate.*; 48 import org.jgrapht.graph.*; 49 import org.jgrapht.traverse.*; 50 import org.jgrapht.util.*; 51 52 53 58 public final class AllTests 59 { 60 61 63 private AllTests() 64 { 65 } 67 69 74 public static Test suite() 75 { 76 ExpandableTestSuite suite = 77 new ExpandableTestSuite("All tests of JGraphT"); 78 79 suite.addTestSuit((TestSuite) AllAlgTests.suite()); 80 suite.addTestSuit((TestSuite) AllGenerateTests.suite()); 81 suite.addTestSuit((TestSuite) AllGraphTests.suite()); 82 suite.addTestSuit((TestSuite) AllTraverseTests.suite()); 83 suite.addTestSuit((TestSuite) AllUtilTests.suite()); 84 85 return suite; 86 } 87 88 90 private static class ExpandableTestSuite 91 extends TestSuite 92 { 93 96 public ExpandableTestSuite() 97 { 98 super(); 99 } 100 101 104 public ExpandableTestSuite(String name) 105 { 106 super(name); 107 } 108 109 114 public void addTestSuit(TestSuite suite) 115 { 116 for (Enumeration e = suite.tests(); e.hasMoreElements();) { 117 Test t = (Test) e.nextElement(); 118 this.addTest(t); 119 } 120 } 121 } 122 } 123 | Popular Tags |