    1   /***
    2    * to prevent a JVM startup-shutdown time per test, it should be more efficient to
    3    * collect the tests together into a suite.
    4    *
    5    * @author <a href="mailto:jeremy.rayner@bigfoot.com">Jeremy Rayner</a>
    6    * @version $Revision: 1.3 $
    7    */
    8   import junit.framework.*;
    9   public class UberTestCase2 extends TestCase {
    10      public static Test suite() {
    11          TestSuite suite = new TestSuite();
    12          suite.addTestSuite(groovy.bugs.ArrayMethodCallBug.class);
    13          suite.addTestSuite(groovy.bugs.ClassGeneratorFixesTest.class);
    14          suite.addTestSuite(groovy.bugs.ClassInScriptBug.class);
    15          suite.addTestSuite(groovy.bugs.ClosuresInScriptBug.class);
    16          suite.addTestSuite(groovy.bugs.ClosureWithStaticVariablesBug.class);
    17          suite.addTestSuite(groovy.bugs.ConstructorParameterBug.class);
    18          suite.addTestSuite(groovy.bugs.Groovy278_Bug.class);
    19          suite.addTestSuite(groovy.bugs.Groovy303_Bug.class);
    20          suite.addTestSuite(groovy.bugs.Groovy308_Bug.class);
    21          suite.addTestSuite(groovy.bugs.Groovy558_616_Bug.class);
    22          suite.addTestSuite(groovy.bugs.Groovy666_Bug.class);
    23          suite.addTestSuite(groovy.bugs.IanMaceysBug.class);
    24          suite.addTestSuite(groovy.bugs.InterfaceImplBug.class);
    25          suite.addTestSuite(groovy.bugs.MarkupInScriptBug.class);
    26          suite.addTestSuite(groovy.bugs.PrimitivePropertyBug.class);
    27          suite.addTestSuite(groovy.bugs.ScriptBug.class);
    28          suite.addTestSuite(groovy.bugs.SeansBug.class);
    29          suite.addTestSuite(groovy.bugs.StaticMethodCallBug.class);
    30          suite.addTestSuite(groovy.bugs.SubscriptOnPrimitiveTypeArrayBug.class);
    31          suite.addTestSuite(groovy.bugs.SubscriptOnStringArrayBug.class);
    32          suite.addTestSuite(groovy.lang.GroovyShellTest.class);
    33          suite.addTestSuite(groovy.lang.GStringTest.class);
    34          suite.addTestSuite(groovy.lang.IntRangeTest.class);
    35          suite.addTestSuite(groovy.lang.MetaClassTest.class);
    36          suite.addTestSuite(groovy.lang.RangeTest.class);
    37          suite.addTestSuite(groovy.lang.ScriptIntegerDivideTest.class);
    38          suite.addTestSuite(groovy.lang.ScriptPrintTest.class);
    39          suite.addTestSuite(groovy.lang.ScriptTest.class);
    40          suite.addTestSuite(groovy.lang.SequenceTest.class);
    41          suite.addTestSuite(groovy.lang.TupleTest.class);
    42          suite.addTestSuite(groovy.mock.example.SandwichMakerTest.class);
    43          suite.addTestSuite(groovy.mock.MockTest.class);
    44          suite.addTestSuite(groovy.model.TableModelTest.class);
    45  //todo - error in some test environments        suite.addTestSuite(groovy.security.RunAllGroovyScriptsSuite.class);
    46  //todo - error in some test environments        suite.addTestSuite(groovy.security.RunOneGroovyScript.class);
    47  //todo - error in some test environments        suite.addTestSuite(groovy.security.SecurityTest.class);
    48  //todo - error in some test environments        suite.addTestSuite(groovy.security.SecurityTestSupport.class);
    49  //todo - error in some test environments        suite.addTestSuite(groovy.security.SignedJarTest.class);
    50          suite.addTestSuite(groovy.sql.PersonTest.class);
    51          suite.addTestSuite(groovy.sql.SqlCompleteTest.class);
    52          suite.addTestSuite(groovy.sql.SqlCompleteWithoutDataSourceTest.class);
    53          suite.addTestSuite(groovy.sql.SqlTest.class);
    54          suite.addTestSuite(groovy.sql.SqlWithBuilderTest.class);
    55          suite.addTestSuite(groovy.sql.SqlWithTypedResultsTest.class);
    56          suite.addTestSuite(groovy.text.TemplateTest.class);
    57          suite.addTestSuite(groovy.tree.NodePrinterTest.class);
    58          suite.addTestSuite(groovy.txn.TransactionTest.class);
    59          suite.addTestSuite(groovy.util.EmptyScriptTest.class);
    60          suite.addTestSuite(groovy.util.MBeanTest.class);
    61          suite.addTestSuite(groovy.util.NodeTest.class);
    62          suite.addTestSuite(groovy.util.XmlParserTest.class);
    63          suite.addTestSuite(groovy.xml.dom.DOMTest.class);
    64          suite.addTestSuite(groovy.xml.DOMTest.class);
    65          suite.addTestSuite(groovy.xml.MarkupTest.class);
    66          suite.addTestSuite(groovy.xml.NamespaceDOMTest.class);
    67          suite.addTestSuite(groovy.xml.SAXTest.class);
    68          suite.addTestSuite(groovy.xml.SmallNamespaceDOMTest.class);
    69          suite.addTestSuite(groovy.xml.VerboseDOMTest.class);
    70          suite.addTestSuite(groovy.xml.XmlTest.class);
    71          return suite;
    72      }
    73
    74  // no tests inside (should we have an AbstractGroovyTestCase???)
    75  //        suite.addTestSuite(groovy.bugs.TestSupport.class);
    76  //        suite.addTestSuite(groovy.sql.TestHelper.class);
    77  //        suite.addTestSuite(groovy.swing.Demo.class);
    78
    79  //  The following classes appear in target/test-classes but do not extend junit.framework.TestCase
    80  //
    81  //        suite.addTestSuite(cheese.Cheddar.class);
    82  //        suite.addTestSuite(cheese.Provolone.class);
    83  //        suite.addTestSuite(groovy.bugs.Cheese.class);
    84  //        suite.addTestSuite(groovy.bugs.MyRange.class);
    85  //        suite.addTestSuite(groovy.bugs.Scholastic.class);
    86  //        suite.addTestSuite(groovy.bugs.SimpleModel.class);
    87  //        suite.addTestSuite(groovy.DummyInterface.class);
    88  //        suite.addTestSuite(groovy.DummyMethods.class);
    89  //        suite.addTestSuite(groovy.gravy.Build.class);
    90  //        suite.addTestSuite(groovy.j2ee.J2eeConsole.class);
    91  //        suite.addTestSuite(groovy.lang.DerivedScript.class);
    92  //        suite.addTestSuite(groovy.lang.DummyGString.class);
    93  //        suite.addTestSuite(groovy.lang.MockWriter.class);
    94  //        suite.addTestSuite(groovy.mock.example.CheeseSlicer.class);
    95  //        suite.addTestSuite(groovy.mock.example.SandwichMaker.class);
    96  //        suite.addTestSuite(groovy.model.MvcDemo.class);
    97  //        suite.addTestSuite(groovy.OuterUser.class);
    98  //        suite.addTestSuite(groovy.script.AtomTestScript.class);
    99  //        suite.addTestSuite(groovy.script.Entry.class);
    100 //        suite.addTestSuite(groovy.script.Feed.class);
    101 //        suite.addTestSuite(groovy.script.PackageScript.class);
    102 //        suite.addTestSuite(groovy.script.Person.class);
    103 //        suite.addTestSuite(groovy.sql.Person.class);
    104 //        suite.addTestSuite(groovy.swing.MyTableModel.class);
    105 //        suite.addTestSuite(groovy.swing.SwingDemo.class);
    106 //        suite.addTestSuite(groovy.swing.TableDemo.class);
    107 //        suite.addTestSuite(groovy.swing.TableLayoutDemo.class);
    108 //        suite.addTestSuite(groovy.txn.TransactionBean.class);
    109 //        suite.addTestSuite(groovy.txn.TransactionBuilder.class);
    110 //        suite.addTestSuite(groovy.util.Dummy.class);
    111 //        suite.addTestSuite(groovy.util.DummyMBean.class);
    112 //        suite.addTestSuite(groovy.util.SpoofTask.class);
    113 //        suite.addTestSuite(groovy.util.SpoofTaskContainer.class);
    114 //        suite.addTestSuite(groovy.xml.TestXmlSupport.class);
    115
    116 }