KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > derbyTesting > functionTests > tests > lang > _Suite


1 /*
2
3    Derby - Class org.apache.derbyTesting.functionTests.tests.lang._Suite
4
5        Licensed to the Apache Software Foundation (ASF) under one
6        or more contributor license agreements. See the NOTICE file
7        distributed with this work for additional information
8        regarding copyright ownership. The ASF licenses this file
9        to you under the Apache License, Version 2.0 (the
10        "License"); you may not use this file except in compliance
11        with the License. You may obtain a copy of the License at
12
13          http://www.apache.org/licenses/LICENSE-2.0
14
15        Unless required by applicable law or agreed to in writing,
16        software distributed under the License is distributed on an
17        "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
18        KIND, either express or implied. See the License for the
19        specific language governing permissions and limitations
20        under the License
21 */

22 package org.apache.derbyTesting.functionTests.tests.lang;
23
24 import org.apache.derbyTesting.junit.BaseTestCase;
25 import org.apache.derbyTesting.junit.JDBC;
26
27 import junit.framework.Test;
28 import junit.framework.TestSuite;
29
30 /**
31  * Suite to run all JUnit tests in this package:
32  * org.apache.derbyTesting.functionTests.tests.lang
33  * <P>
34  * All tests are run "as-is", just as if they were run
35  * individually. Thus this test is just a collection
36  * of all the JUNit tests in this package (excluding itself).
37  * While the old test harness is in use, some use of decorators
38  * may be required.
39  *
40  */

41 public class _Suite extends BaseTestCase {
42
43     /**
44      * Use suite method instead.
45      */

46     private _Suite(String JavaDoc name) {
47         super(name);
48     }
49
50     public static Test suite() {
51
52         TestSuite suite = new TestSuite("lang");
53         
54         // DERBY-1315 and DERBY-1735 need to be addressed
55
// before re-enabling this test as it's memory use is
56
// different on different vms leading to failures in
57
// the nightly runs.
58
// suite.addTest(largeCodeGen.suite());
59

60         // suite.addTest(PrepareExecuteDDL.suite());
61
suite.addTest(LangScripts.suite());
62         suite.addTest(GroupByExpressionTest.suite());
63         suite.addTest(MathTrigFunctionsTest.suite());
64         suite.addTest(TimeHandlingTest.suite());
65         suite.addTest(VTITest.suite());
66         
67         // This test internally sets derby.database.sqlAuthorization to true
68
// This property is not resettable and hence may affect other tests
69
// using it and sharing the same database.
70
suite.addTest(SQLAuthorizationPropTest.suite());
71         
72         // Tests that are compiled using 1.4 target need to
73
// be added this way, otherwise creating the suite
74
// will throw an invalid class version error
75
if (JDBC.vmSupportsJDBC3() || JDBC.vmSupportsJSR169())
76         {
77         }
78
79         return suite;
80     }
81 }
82
Popular Tags