import junit.framework.*; /** * TestSuite that collects all testcases genereated for all JUnit classes. */ public class JUnitAll extends TestSuite { public JUnitAll(String pName) { super(pName); } public static Test suite() { TestSuite suite = new TestSuite(); /* Following are JUnit test cases that do not end in Test.java or Test.groovy */ suite.addTestSuite(ClassLoaderBug.class); suite.addTestSuite(ToArrayBug.class); suite.addTestSuite(TryCatchTest2.class); suite.addTestSuite(ClosureClassLoaderBug.class); /* Following found via edu\gatech\cc\junit\CreateJUnitAll.java */ suite.addTestSuite(AssertNumberTest.class); suite.addTestSuite(AssertTest.class); suite.addTestSuite(BooleanOperationTest.class); suite.addTestSuite(ClassExpressionTest.class); suite.addTestSuite(ClosureAsParamTest.class); suite.addTestSuite(ClosureInStaticMethodTest.class); suite.addTestSuite(ClosureMethodCallTest.class); suite.addTestSuite(ClosureMethodTest.class); suite.addTestSuite(ClosureReturnTest.class); suite.addTestSuite(ClosureReturnWithoutReturnStatementTest.class); suite.addTestSuite(ClosureSugarTest.class); suite.addTestSuite(ClosureTest.class); suite.addTestSuite(ClosureUsingOuterVariablesTest.class); suite.addTestSuite(ClosureWithDefaultParamTest.class); suite.addTestSuite(CompareToTest.class); suite.addTestSuite(DoubleOperationTest.class); suite.addTestSuite(ExceptionInClosureTest.class); suite.addTestSuite(ForLoopTest.class); suite.addTestSuite(ForLoopWithLocalVariablesTest.class); suite.addTestSuite(GeneratorTest.class); suite.addTestSuite(GlobalPrintlnTest.class); suite.addTestSuite(GPathTest.class); //JUnit warning: //suite.addTestSuite(groovy.gdo.PersonTest.class); //JUnit warning: //suite.addTestSuite(groovy.gdo.RunGroovyTest.class); //JUnit warning: //suite.addTestSuite(groovy.gdo.SqlCompleteTest.class); //JUnit warning: //suite.addTestSuite(groovy.gdo.SqlTest.class); //Chicory-JUnit warning: //suite.addTestSuite(groovy.lang.GroovyShellTest.class); suite.addTestSuite(groovy.lang.GStringTest.class); suite.addTestSuite(groovy.lang.IntRangeTest.class); suite.addTestSuite(groovy.lang.RangeTest.class); suite.addTestSuite(groovy.lang.SequenceTest.class); suite.addTestSuite(groovy.lang.TupleTest.class); suite.addTestSuite(groovy.mock.example.SandwichMakerTest.class); suite.addTestSuite(groovy.mock.MockTest.class); suite.addTestSuite(groovy.model.TableModelTest.class); //Chicory-JUnit warning: //suite.addTestSuite(groovy.tree.NodePrinterTest.class); suite.addTestSuite(groovy.txn.TransactionTest.class); //Chicory-JUnit warning: //suite.addTestSuite(groovy.util.AntTest.class); //Chicory-JUnit warning: //suite.addTestSuite(groovy.util.MBeanTest.class); //Chicory-JUnit warning: //suite.addTestSuite(groovy.util.NodeTest.class); //Chicory-JUnit warning: //suite.addTestSuite(groovy.util.XmlParserTest.class); //Chicory-JUnit warning: //suite.addTestSuite(groovy.xml.DOMTest.class); //Chicory-JUnit warning: //suite.addTestSuite(groovy.xml.MarkupTest.class); //Chicory-JUnit warning: //suite.addTestSuite(groovy.xml.NamespaceDOMTest.class); //Chicory-JUnit warning: //suite.addTestSuite(groovy.xml.SAXTest.class); suite.addTestSuite(groovy.xml.SmallNamespaceDOMTest.class); suite.addTestSuite(groovy.xml.VerboseDOMTest.class); //Chicory-JUnit warning: //suite.addTestSuite(groovy.xml.XmlTest.class); suite.addTestSuite(GroovyMethodsTest.class); suite.addTestSuite(GStringTest.class); suite.addTestSuite(HomepageTest.class); suite.addTestSuite(IfElseCompactTest.class); suite.addTestSuite(IfElseTest.class); suite.addTestSuite(IfPropertyTest.class); suite.addTestSuite(IfWithMethodCallTest.class); suite.addTestSuite(InstanceofTest.class); suite.addTestSuite(IntegerOperationTest.class); suite.addTestSuite(ListIteratingTest.class); suite.addTestSuite(ListTest.class); suite.addTestSuite(LittleClosureTest.class); suite.addTestSuite(LocalFieldTest.class); suite.addTestSuite(LocalPropertyTest.class); suite.addTestSuite(LocalVariableTest.class); suite.addTestSuite(LogicTest.class); suite.addTestSuite(LogTest.class); suite.addTestSuite(MapConstructionTest.class); suite.addTestSuite(MapPropertyTest.class); suite.addTestSuite(MapTest.class); suite.addTestSuite(MethodCallTest.class); suite.addTestSuite(MinusEqualsTest.class); suite.addTestSuite(MultiplyDivideEqualsTest.class); suite.addTestSuite(NamedParameterTest.class); suite.addTestSuite(NavigationTest.class); suite.addTestSuite(NestedClosureBugTest.class); suite.addTestSuite(NewExpressionTest.class); suite.addTestSuite(NodeGPathTest.class); suite.addTestSuite(NoPackageTest.class); suite.addTestSuite(NullPropertyTest.class); suite.addTestSuite(OptionalReturnTest.class); suite.addTestSuite(OrderByTest.class); suite.addTestSuite(org.codehaus.groovy.ast.ClassNodeTest.class); suite.addTestSuite(org.codehaus.groovy.ast.ModuleNodeTest.class); //Chicory-JUnit warning: //suite.addTestSuite(org.codehaus.groovy.bsf.BSFTest.class); suite.addTestSuite(org.codehaus.groovy.classgen.CapitalizeTest.class); suite.addTestSuite(org.codehaus.groovy.classgen.ConstructorIssueTest.class); //Chicory-JUnit warning: //suite.addTestSuite(org.codehaus.groovy.classgen.ConstructorTest.class); suite.addTestSuite(org.codehaus.groovy.classgen.ForTest.class); suite.addTestSuite(org.codehaus.groovy.classgen.GetPropertyTest.class); suite.addTestSuite(org.codehaus.groovy.classgen.GroovyClassLoaderTest.class); //Chicory-JUnit warning: //suite.addTestSuite(org.codehaus.groovy.classgen.GStringTest.class); //Chicory-JUnit warning: //suite.addTestSuite(org.codehaus.groovy.classgen.IfElseTest.class); suite.addTestSuite(org.codehaus.groovy.classgen.MainTest.class); //JUnit warning: //suite.addTestSuite(org.codehaus.groovy.classgen.MetaClassTest.class); //Chicory-JUnit warning: //suite.addTestSuite(org.codehaus.groovy.classgen.MethodTest.class); //Chicory-JUnit warning: //suite.addTestSuite(org.codehaus.groovy.classgen.PropertyTest.class); //Chicory-JUnit warning: //suite.addTestSuite(org.codehaus.groovy.classgen.RunClosureTest.class); //Chicory-JUnit warning: //suite.addTestSuite(org.codehaus.groovy.classgen.RunGroovyTest.class); //Chicory-JUnit 2 warning: //suite.addTestSuite(org.codehaus.groovy.classgen.TupleListTest.class); suite.addTestSuite(org.codehaus.groovy.runtime.DefaultGroovyMethodsTest.class); suite.addTestSuite(org.codehaus.groovy.runtime.InvokeConstructorTest.class); suite.addTestSuite(org.codehaus.groovy.runtime.InvokeGroovyMethodTest.class); suite.addTestSuite(org.codehaus.groovy.runtime.InvokeMethodTest.class); suite.addTestSuite(org.codehaus.groovy.runtime.InvokerTest.class); suite.addTestSuite(org.codehaus.groovy.runtime.MethodFailureTest.class); suite.addTestSuite(org.codehaus.groovy.runtime.PropertyTest.class); //Chicory-JUnit warning: //suite.addTestSuite(org.codehaus.groovy.runtime.TupleListTest.class); suite.addTestSuite(org.codehaus.groovy.syntax.AbstractTokenStreamTest.class); suite.addTestSuite(org.codehaus.groovy.syntax.lexer.AbstractCharStreamTest.class); suite.addTestSuite(org.codehaus.groovy.syntax.lexer.LexerTest.class); suite.addTestSuite(org.codehaus.groovy.syntax.lexer.LexerTokenStreamTest.class); suite.addTestSuite(org.codehaus.groovy.syntax.lexer.StringCharStreamTest.class); suite.addTestSuite(org.codehaus.groovy.syntax.parser.ASTBuilderTest.class); suite.addTestSuite(org.codehaus.groovy.syntax.parser.CompilerErrorTest.class); suite.addTestSuite(org.codehaus.groovy.syntax.parser.CSTNodeTest.class); suite.addTestSuite(org.codehaus.groovy.syntax.parser.ParserTest.class); suite.addTestSuite(org.codehaus.groovy.syntax.TokenTest.class); suite.addTestSuite(org.codehaus.groovy.tools.CompilerTest.class); suite.addTestSuite(org.codehaus.groovy.tools.FileSystemCompilerTest.class); //Chicory-JUnit warning: //suite.addTestSuite(org.codehaus.groovy.tools.xml.DomToGroovyTest.class); suite.addTestSuite(PlusEqualsTest.class); suite.addTestSuite(PostfixTest.class); suite.addTestSuite(PrefixTest.class); suite.addTestSuite(PrintTest.class); //Chicory-JUnit warning: //suite.addTestSuite(PropertyTest.class); suite.addTestSuite(PropertyWithoutDotTest.class); suite.addTestSuite(RangeTest.class); suite.addTestSuite(RegularExpressionsTest.class); suite.addTestSuite(ReturnTest.class); suite.addTestSuite(SafeNavigationTest.class); suite.addTestSuite(ScriptTest.class); suite.addTestSuite(SmallTreeTest.class); suite.addTestSuite(StaticPrintlnTest.class); suite.addTestSuite(StaticThisTest.class); suite.addTestSuite(StringOperationTest.class); suite.addTestSuite(StringTest.class); suite.addTestSuite(SwitchTest.class); suite.addTestSuite(SwitchWithDifferentTypesTest.class); suite.addTestSuite(ThrowTest.class); suite.addTestSuite(TreeTest.class); suite.addTestSuite(TryCatchTest.class); suite.addTestSuite(TypesafeMethodTest.class); suite.addTestSuite(UnsafeNavigationTest.class); suite.addTestSuite(VerbatimGStringTest.class); suite.addTestSuite(VerboseTreeTest.class); suite.addTestSuite(WhileLoopTest.class); return suite; } /** * Main, for easier Daikon-access (Christoph Csallner) */ public static void main(String args[]) { junit.textui.TestRunner.main(new String[]{"JUnitAll"}); } }