1 /***** BEGIN LICENSE BLOCK ***** 2 * Version: CPL 1.0/GPL 2.0/LGPL 2.1 3 * 4 * The contents of this file are subject to the Common Public 5 * License Version 1.0 (the "License"); you may not use this file 6 * except in compliance with the License. You may obtain a copy of 7 * the License at http://www.eclipse.org/legal/cpl-v10.html 8 * 9 * Software distributed under the License is distributed on an "AS 10 * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or 11 * implied. See the License for the specific language governing 12 * rights and limitations under the License. 13 * 14 * Copyright (C) 2001 Chad Fowler <chadfowler@chadfowler.com> 15 * Copyright (C) 2001 Alan Moore <alan_moore@gmx.net> 16 * Copyright (C) 2001-2002 Jan Arne Petersen <jpetersen@uni-bonn.de> 17 * Copyright (C) 2001-2002 Benoit Cerrina <b.cerrina@wanadoo.fr> 18 * Copyright (C) 2002 uid41545 <uid41545@users.sourceforge.net> 19 * Copyright (C) 2002 Don Schwartz <schwardo@users.sourceforge.net> 20 * Copyright (C) 2002-2004 Anders Bengtsson <ndrsbngtssn@yahoo.se> 21 * 22 * Alternatively, the contents of this file may be used under the terms of 23 * either of the GNU General Public License Version 2 or later (the "GPL"), 24 * or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), 25 * in which case the provisions of the GPL or the LGPL are applicable instead 26 * of those above. If you wish to allow use of your version of this file only 27 * under the terms of either the GPL or the LGPL, and not to allow others to 28 * use your version of this file under the terms of the CPL, indicate your 29 * decision by deleting the provisions above and replace them with the notice 30 * and other provisions required by the GPL or the LGPL. If you do not delete 31 * the provisions above, a recipient may use your version of this file under 32 * the terms of any one of the CPL, the GPL or the LGPL. 33 ***** END LICENSE BLOCK *****/ 34 package org.jruby.test; 35 36 import junit.framework.Test; 37 import junit.framework.TestSuite; 38 39 import org.jruby.TestRegexpTranslator; 40 import org.jruby.ast.executable.YARVMachineTest; 41 import org.jruby.ast.visitor.rewriter.VisitorTestSuite; 42 import org.jruby.javasupport.TestJavaClass; 43 import org.jruby.javasupport.test.JavaSupportTestSuite; 44 import org.jruby.runtime.callback.TestReflectionCallback; 45 import org.jruby.util.ByteListTest; 46 47 /** 48 * 49 * @author chadfowler 50 */ 51 public class MainTestSuite extends TestSuite { 52 53 public static Test suite() throws Throwable { 54 TestSuite suite = new TestSuite(); 55 suite.addTestSuite(TestLoadService.class); 56 suite.addTestSuite(TestRubyObject.class); 57 suite.addTestSuite(TestRubyNil.class); 58 suite.addTestSuite(TestRubyHash.class); 59 suite.addTestSuite(TestRuby.class); 60 suite.addTestSuite(TestRequire.class); 61 suite.addTestSuite(TestJavaUtil.class); 62 suite.addTestSuite(TestJavaClass.class); 63 suite.addTestSuite(TestKernel.class); 64 suite.addTestSuite(TestKernel.class); 65 suite.addTestSuite(TestRubyCollect.class); 66 suite.addTestSuite(TestObjectSpace.class); 67 suite.addTestSuite(TestRubySymbol.class); 68 suite.addTest(JavaSupportTestSuite.suite()); 69 suite.addTestSuite(TestIdentitySet.class); 70 suite.addTestSuite(TestCommandlineParser.class); 71 suite.addTestSuite(TestRubyException.class); 72 suite.addTestSuite(TestReflectionCallback.class); 73 suite.addTestSuite(TestRegexpTranslator.class); 74 suite.addTestSuite(TestAdoptedThreading.class); 75 suite.addTestSuite(TestRubyArray.class); 76 suite.addTestSuite(TestVariableCreation.class); 77 suite.addTestSuite(YARVMachineTest.class); 78 suite.addTestSuite(TestRaiseException.class); 79 suite.addTest(VisitorTestSuite.suite()); 80 suite.addTestSuite(ByteListTest.class); 81 return suite; 82 } 83 } 84