    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.1 $
    7    */
    8   import junit.framework.*;
    9   public class UberTestCase extends TestCase {
    10      public static Test suite() {
    11          TestSuite suite = new TestSuite();
    12          suite.addTestSuite(AmbiguousInvocationTest.class);
    13          suite.addTestSuite(ArrayParamMethodTest.class);
    14          suite.addTestSuite(ArrayTest.class);
    15          suite.addTestSuite(AssertNumberTest.class);
    16          suite.addTestSuite(AssertTest.class);
    17          suite.addTestSuite(AssignmentInsideExpressionBug.class);
    18          suite.addTestSuite(AutoboxingOfComparisonsBug.class);
    19          suite.addTestSuite(BadScriptNameBug.class);
    20          suite.addTestSuite(Base64Test.class);
    21          suite.addTestSuite(BenchmarkBug.class);
    22          suite.addTestSuite(BigDecimalOperationTest.class);
    23          suite.addTestSuite(BindingTest.class);
    24          suite.addTestSuite(BlockAsClosureBug.class);
    25          suite.addTestSuite(BooleanBug.class);
    26          suite.addTestSuite(BooleanOperationTest.class);
    27          suite.addTestSuite(ByteIndexBug.class);
    28          suite.addTestSuite(Bytecode2Bug.class);
    29          suite.addTestSuite(Bytecode3Bug.class);
    30          suite.addTestSuite(Bytecode4Bug.class);
    31          suite.addTestSuite(Bytecode5Bug.class);
    32          suite.addTestSuite(Bytecode6Bug.class);
    33          suite.addTestSuite(Bytecode7Bug.class);
    34          suite.addTestSuite(BytecodeBug.class);
    35          suite.addTestSuite(CallInnerClassCtorTest.class);
    36          suite.addTestSuite(CallingClosuresWithClosuresBug.class);
    37          suite.addTestSuite(CastTest.class);
    38          suite.addTestSuite(CastWhenUsingClosuresBug.class);
    39          suite.addTestSuite(CategoryTest.class);
    40          suite.addTestSuite(ChainedAssignment.class);
    41          suite.addTestSuite(ChristofsPropertyBug.class);
    42          suite.addTestSuite(ClassExpressionTest.class);
    43          suite.addTestSuite(ClassInNamedParamsBug.class);
    44          suite.addTestSuite(ClassLoaderBug.class);
    45          suite.addTestSuite(ClassTest.class);
    46          suite.addTestSuite(ClosureAsParamTest.class);
    47          suite.addTestSuite(ClosureClassLoaderBug.class);
    48          suite.addTestSuite(ClosureCloneTest.class);
    49          suite.addTestSuite(ClosureComparatorTest.class);
    50          suite.addTestSuite(ClosureCurryTest.class);
    51          suite.addTestSuite(ClosureInClosureBug.class);
    52          suite.addTestSuite(ClosureInClosureTest.class);
    53          suite.addTestSuite(ClosureInStaticMethodTest.class);
    54          suite.addTestSuite(ClosureMethodCallTest.class);
    55          suite.addTestSuite(ClosureMethodTest.class);
    56          suite.addTestSuite(ClosureParameterPassingBug.class);
    57          suite.addTestSuite(ClosureReturnTest.class);
    58          suite.addTestSuite(ClosureReturnWithoutReturnStatementTest.class);
    59          suite.addTestSuite(ClosureSugarTest.class);
    60          suite.addTestSuite(ClosureTest.class);
    61          suite.addTestSuite(ClosureTypedVariableBug.class);
    62          suite.addTestSuite(ClosureUsingOuterVariablesTest.class);
    63          suite.addTestSuite(ClosureVariableBug.class);
    64          suite.addTestSuite(ClosureWithDefaultParamTest.class);
    65          suite.addTestSuite(CompareToTest.class);
    66          suite.addTestSuite(CompilerErrorTest.class);
    67          suite.addTestSuite(ConstructorBug.class);
    68          suite.addTestSuite(DateTest.class);
    69          suite.addTestSuite(DefVariableBug.class);
    70          suite.addTestSuite(DefaultParamClosureTest.class);
    71          suite.addTestSuite(DefaultParamTest.class);
    72          suite.addTestSuite(DollarEscapingTest.class);
    73          suite.addTestSuite(DoubleOperationTest.class);
    74          suite.addTestSuite(EscapedMetaCharacterTest.class);
    75          suite.addTestSuite(EscapedUnicodeTest.class);
    76          suite.addTestSuite(ExceptionInClosureTest.class);
    77          suite.addTestSuite(ExpandoPropertyTest.class);
    78          suite.addTestSuite(FilterLineTest.class);
    79          suite.addTestSuite(ForAndSqlBug.class);
    80          suite.addTestSuite(ForLoopBug.class);
    81          suite.addTestSuite(ForLoopTest.class);
    82          suite.addTestSuite(ForLoopWithLocalVariablesTest.class);
    83          suite.addTestSuite(FullyQualifiedClassBug.class);
    84          suite.addTestSuite(GPathTest.class);
    85          suite.addTestSuite(GStringTest.class);
    86          suite.addTestSuite(GeneratorTest.class);
    87          suite.addTestSuite(GetterBug.class);
    88          suite.addTestSuite(GlobalPrintlnTest.class);
    89          suite.addTestSuite(Groovy239_Bug.class);
    90          suite.addTestSuite(Groovy249_Bug.class);
    91          suite.addTestSuite(Groovy252_Bug.class);
    92          suite.addTestSuite(Groovy389_Bug.class);
    93          suite.addTestSuite(Groovy513_Bug.class);
    94          suite.addTestSuite(GroovyMethodsTest.class);
    95          suite.addTestSuite(GuillaumesBug.class);
    96          suite.addTestSuite(GuillaumesMapBug.class);
    97          suite.addTestSuite(HeredocsTest.class);
    98          suite.addTestSuite(HomepageTest.class);
    99          suite.addTestSuite(IfElseCompactTest.class);
    100         suite.addTestSuite(IfElseTest.class);
    101         suite.addTestSuite(IfPropertyTest.class);
    102         suite.addTestSuite(IfTest.class);
    103         suite.addTestSuite(IfWithMethodCallTest.class);
    104         suite.addTestSuite(ImmutableModificationTest.class);
    105         suite.addTestSuite(ImportTest.class);
    106         suite.addTestSuite(InconsistentStackHeightBug.class);
    107         suite.addTestSuite(InstanceofTest.class);
    108         suite.addTestSuite(InvokeNormalMethodFromBuilder_Bug657.class);
    109         suite.addTestSuite(InvokeNormalMethodsFirstTest.class);
    110         suite.addTestSuite(IntegerOperationTest.class);
    111         suite.addTestSuite(IterateOverCustomTypeBug.class);
    112         suite.addTestSuite(ListIteratingTest.class);
    113         suite.addTestSuite(ListTest.class);
    114         suite.addTestSuite(LiteralTypesTest.class);
    115         suite.addTestSuite(LittleClosureTest.class);
    116         suite.addTestSuite(LocalFieldTest.class);
    117         suite.addTestSuite(LocalPropertyTest.class);
    118         suite.addTestSuite(LocalVariableTest.class);
    119         suite.addTestSuite(LogTest.class);
    120         suite.addTestSuite(LogicTest.class);
    121         suite.addTestSuite(LoopBreakTest.class);
    122         suite.addTestSuite(MapConstructionTest.class);
    123         suite.addTestSuite(MapPropertyTest.class);
    124         suite.addTestSuite(MapTest.class);
    125         suite.addTestSuite(MarkupAndMethodBug.class);
    126         suite.addTestSuite(MethodCallTest.class);
    127         suite.addTestSuite(MethodCallWithoutParensInStaticMethodBug.class);
    128         suite.addTestSuite(MethodCallWithoutParenthesisTest.class);
    129         suite.addTestSuite(MethodDispatchBug.class);
    130         suite.addTestSuite(MethodParameterAccessWithinClosureTest.class);
    131         suite.addTestSuite(MinMaxTest.class);
    132         suite.addTestSuite(MinusEqualsTest.class);
    133         suite.addTestSuite(ModuloTest.class);
    134         suite.addTestSuite(MorgansBug.class);
    135         suite.addTestSuite(MultilineStringTest.class);
    136         suite.addTestSuite(MultiplyDivideEqualsTest.class);
    137         suite.addTestSuite(NamedParameterTest.class);
    138         suite.addTestSuite(NavigationTest.class);
    139         suite.addTestSuite(NegationTests.class);
    140         suite.addTestSuite(NestedClosure2Bug.class);
    141         suite.addTestSuite(NestedClosureBug.class);
    142         suite.addTestSuite(NestedClosureBugTest.class);
    143         suite.addTestSuite(NewExpressionTest.class);
    144         suite.addTestSuite(NoPackageTest.class);
    145         suite.addTestSuite(NodeGPathTest.class);
    146         suite.addTestSuite(NullCompareBug.class);
    147         suite.addTestSuite(NullPropertyTest.class);
    148         suite.addTestSuite(NumberMathTest.class);
    149         suite.addTestSuite(NumberTest.class);
    150         suite.addTestSuite(OptionalReturnTest.class);
    151         suite.addTestSuite(OrderByTest.class);
    152         suite.addTestSuite(OverloadInvokeMethodBug.class);
    153         suite.addTestSuite(OverloadInvokeMethodTest.class);
    154         suite.addTestSuite(OverridePropertyGetterTest.class);
    155         suite.addTestSuite(PlusEqualsTest.class);
    156         suite.addTestSuite(PostfixTest.class);
    157         suite.addTestSuite(PrefixTest.class);
    158         suite.addTestSuite(PrimitiveTypeFieldTest.class);
    159         suite.addTestSuite(PrimitiveTypesTest.class);
    160         suite.addTestSuite(PrintTest.class);
    161         suite.addTestSuite(PrintlnWithNewBug.class);
    162         suite.addTestSuite(PrivateVariableAccessFromAnotherInstanceTest.class);
    163         suite.addTestSuite(ProcessTest.class);
    164         suite.addTestSuite(PropertyBug.class);
    165         suite.addTestSuite(PropertyTest.class);
    166         suite.addTestSuite(PropertyTest2.class);
    167         suite.addTestSuite(PropertyWithoutDotTest.class);
    168         suite.addTestSuite(RangeTest.class);
    169         suite.addTestSuite(ReadLineTest.class);
    170         suite.addTestSuite(RegularExpressionsTest.class);
    171         suite.addTestSuite(ReturnTest.class);
    172         suite.addTestSuite(RodsBooleanBug.class);
    173         suite.addTestSuite(RodsBug.class);
    174         suite.addTestSuite(SafeNavigationTest.class);
    175         suite.addTestSuite(SerializeTest.class);
    176         suite.addTestSuite(ShellTest.class);
    177         suite.addTestSuite(SmallTreeTest.class);
    178         suite.addTestSuite(SocketTest.class);
    179         suite.addTestSuite(SortTest.class);
    180         suite.addTestSuite(StaticClosurePropertyBug.class);
    181         suite.addTestSuite(StaticMarkupBug.class);
    182         suite.addTestSuite(StaticPrintlnTest.class);
    183         suite.addTestSuite(StaticThisTest.class);
    184         suite.addTestSuite(StringOperationTest.class);
    185         suite.addTestSuite(StringTest.class);
    186         suite.addTestSuite(SubscriptAndExpressionBug.class);
    187         suite.addTestSuite(SubscriptTest.class);
    188         suite.addTestSuite(SuperMethod2Bug.class);
    189         suite.addTestSuite(SuperMethodBug.class);
    190         suite.addTestSuite(SwitchTest.class);
    191         suite.addTestSuite(SwitchWithDifferentTypesTest.class);
    192         suite.addTestSuite(TedsClosureBug.class);
    193         suite.addTestSuite(TernaryOperatorTest.class);
    194         suite.addTestSuite(TextPropertyTest.class);
    195         suite.addTestSuite(ThrowTest.class);
    196         suite.addTestSuite(ToArrayBug.class);
    197         suite.addTestSuite(ToStringBug.class);
    198         suite.addTestSuite(TreeTest.class);
    199         suite.addTestSuite(TripleQuotedStringTest.class);
    200         suite.addTestSuite(TryCatch2Bug.class);
    201         suite.addTestSuite(TryCatchBug.class);
    202         suite.addTestSuite(TryCatchTest.class);
    203         suite.addTestSuite(TypesafeMethodTest.class);
    204         suite.addTestSuite(UnaryMinusTest.class);
    205         suite.addTestSuite(UnknownVariableBug.class);
    206         suite.addTestSuite(UnsafeNavigationTest.class);
    207         suite.addTestSuite(UseClosureInClosureBug.class);
    208         suite.addTestSuite(UseStaticInClosureBug.class);
    209         suite.addTestSuite(VariableScopingBug.class);
    210         suite.addTestSuite(VariblePrecedence.class);
    211         suite.addTestSuite(VerbatimGStringTest.class);
    212         suite.addTestSuite(VerboseTreeTest.class);
    213         suite.addTestSuite(WhileLoopTest.class);
    214         suite.addTestSuite(ZoharsBug.class);
    215         return suite;
    216     }
    217
    218 //  The following classes appear in target/test-classes but do not extend junit.framework.TestCase
    219 //
    220 //        suite.addTestSuite(AnotherMockInputStream.class);
    221 //        suite.addTestSuite(Bean.class);
    222 //        suite.addTestSuite(Bean249.class);
    223 //        suite.addTestSuite(BooleanBean.class);
    224 //        suite.addTestSuite(CallAnotherScript.class);
    225 //        suite.addTestSuite(ClassWithScript.class);
    226 //        suite.addTestSuite(ComparableFoo.class);
    227 //        suite.addTestSuite(CreateData.class);
    228 //        suite.addTestSuite(Entry.class);
    229 //        suite.addTestSuite(EvalInScript.class);
    230 //        suite.addTestSuite(Feed.class);
    231 //        suite.addTestSuite(Foo.class);
    232 //        suite.addTestSuite(HelloWorld.class);
    233 //        suite.addTestSuite(HelloWorld2.class);
    234 //        suite.addTestSuite(Html2Wiki.class);
    235 //        suite.addTestSuite(IntegerCategory.class);
    236 //        suite.addTestSuite(Loop.class);
    237 //        suite.addTestSuite(Loop2.class);
    238 //        suite.addTestSuite(MapFromList.class);
    239 //        suite.addTestSuite(MarkupTestScript.class);
    240 //        suite.addTestSuite(MethodTestScript.class);
    241 //        suite.addTestSuite(MockInputStream.class);
    242 //        suite.addTestSuite(MockProcess.class);
    243 //        suite.addTestSuite(MockSocket.class);
    244 //        suite.addTestSuite(OverloadA.class);
    245 //        suite.addTestSuite(OverloadB.class);
    246 //        suite.addTestSuite(NavToWiki.class);
    247 //        suite.addTestSuite(Person.class);
    248 //        suite.addTestSuite(SampleMain.class);
    249 //        suite.addTestSuite(ScriptWithFunctions.class);
    250 //        suite.addTestSuite(ShowArgs.class);
    251 //        suite.addTestSuite(StringCategory.class);
    252 //        suite.addTestSuite(SuperBase.class);
    253 //        suite.addTestSuite(SuperDerived.class);
    254 //        suite.addTestSuite(TestBase.class);
    255 //        suite.addTestSuite(TestCaseBug.class);
    256 //        suite.addTestSuite(TestDerived.class);
    257 //        suite.addTestSuite(TinyAgent.class);
    258 //        suite.addTestSuite(UnitTestAsScript.class);
    259 //        suite.addTestSuite(UseClosureInScript.class);
    260 //        suite.addTestSuite(X.class);
    261 //        suite.addTestSuite(createLoop.class);
    262 }