01: /*
02:
03: Derby - Class org.apache.derbyTesting.functionTests.tests.tools._Suite
04:
05: Licensed to the Apache Software Foundation (ASF) under one
06: or more contributor license agreements. See the NOTICE file
07: distributed with this work for additional information
08: regarding copyright ownership. The ASF licenses this file
09: 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.tools;
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.tools
33: *
34: */
35: public class _Suite extends BaseTestCase {
36:
37: /**
38: * Use suite method instead.
39: */
40: private _Suite(String name) {
41: super (name);
42: }
43:
44: public static Test suite() {
45:
46: TestSuite suite = new TestSuite("tools");
47:
48: suite.addTest(IJRunScriptTest.suite());
49:
50: // Tests that are compiled using 1.4 target need to
51: // be added this way, otherwise creating the suite
52: // will throw an invalid class version error
53: if (JDBC.vmSupportsJDBC3() || JDBC.vmSupportsJSR169()) {
54: }
55:
56: return suite;
57: }
58: }
|