1 /* 2 * Copyright (C) 2007 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 package tests; 18 19 import junit.framework.Test; 20 import junit.framework.TestSuite; 21 import junit.textui.TestRunner; 22 23 /** 24 * Listing of all the tests that are to be run. 25 */ 26 public class AllTests 27 { run()28 public static void run() { 29 TestRunner.main(new String[] { AllTests.class.getName() }); 30 } 31 suite()32 public static final Test suite() { 33 TestSuite suite = new TestSuite(); 34 35 // Harmony-written test suites (often with Android tests added in). 36 suite.addTest(tests.annotation.AllTests.suite()); 37 suite.addTest(tests.archive.AllTests.suite()); 38 suite.addTest(tests.concurrent.AllTests.suite()); 39 suite.addTest(tests.dom.AllTests.suite()); 40 suite.addTest(tests.luni.AllTestsIo.suite()); 41 suite.addTest(tests.luni.AllTestsLang.suite()); 42 suite.addTest(tests.luni.AllTestsNet.suite()); 43 suite.addTest(tests.luni.AllTestsUtil.suite()); 44 suite.addTest(tests.math.AllTests.suite()); 45 suite.addTest(tests.nio.AllTests.suite()); 46 suite.addTest(tests.nio_char.AllTests.suite()); 47 suite.addTest(tests.prefs.AllTests.suite()); 48 suite.addTest(tests.regex.AllTests.suite()); 49 suite.addTest(tests.security.AllTests.suite()); 50 suite.addTest(tests.sql.AllTests.suite()); 51 suite.addTest(tests.SQLite.AllTests.suite()); 52 suite.addTest(tests.suncompat.AllTests.suite()); 53 suite.addTest(tests.xml.AllTests.suite()); 54 suite.addTest(tests.api.org.apache.harmony.kernel.dalvik.AllTests.suite()); 55 56 // Android-written test suites. 57 58 return suite; 59 } 60 } 61