1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179
|
/*
Derby - Class org.apache.derbyTesting.functionTests.tests.jdbcapi._Suite
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License
*/
package org.apache.derbyTesting.functionTests.tests.jdbcapi;
import junit.framework.Test;
import org.apache.derbyTesting.junit.BaseTestCase;
import org.apache.derbyTesting.junit.BaseTestSuite;
import org.apache.derbyTesting.junit.JDBC;
/**
* Suite to run all JUnit tests in this package:
* org.apache.derbyTesting.functionTests.tests.jdbcapi
*
*/
public class _Suite extends BaseTestCase {
/**
* Use suite method instead.
*/
private _Suite(String name) {
super(name);
}
public static Test suite() {
BaseTestSuite suite = new BaseTestSuite("jdbcapi");
suite.addTest(BlobSetBytesBoundaryTest.suite());
suite.addTest(ConcurrencyTest.suite());
suite.addTest(DaylightSavingTest.suite());
suite.addTest(HoldabilityTest.suite());
suite.addTest(Derby5158Test.suite());
suite.addTest(LobLengthTest.suite());
suite.addTest(ProcedureTest.suite());
suite.addTest(SURQueryMixTest.suite());
suite.addTest(SURTest.suite());
suite.addTest(UpdatableResultSetTest.suite());
suite.addTest(UpdateXXXTest.suite());
suite.addTest(URCoveringIndexTest.suite());
suite.addTest(ResultSetCloseTest.suite());
suite.addTest(BlobClob4BlobTest.suite());
suite.addTest(CharacterStreamsTest.suite());
suite.addTest(BatchUpdateTest.suite());
suite.addTest(StreamTest.suite());
suite.addTest(DboPowersTest.suite());
suite.addTest(BlobStoredProcedureTest.suite());
suite.addTest(ClobStoredProcedureTest.suite());
suite.addTest(CallableTest.suite());
suite.addTest(ResultSetMiscTest.suite());
suite.addTest(PrepStmtMetaDataTest.suite());
suite.addTest(ScrollResultSetTest.suite());
suite.addTest(LobStreamsTest.suite());
suite.addTest(ResultSetJDBC30Test.suite());
suite.addTest(DatabaseMetaDataTest.suite());
suite.addTest(ClosedObjectTest.suite());
suite.addTest(SetTransactionIsolationTest.suite());
suite.addTest(AuthenticationTest.suite());
if (!JDBC.vmSupportsJSR169()) {
// DERBY-5069 Suites.All fails with InvocationTargetException
suite.addTest(DriverTest.suite());
}
suite.addTest(SURijTest.suite());
suite.addTest(NullSQLTextTest.suite());
suite.addTest(PrepStmtNullTest.suite());
suite.addTest(StatementJdbc30Test.suite());
suite.addTest(StatementJdbc20Test.suite());
suite.addTest(ClobTest.suite());
suite.addTest(BlobUpdatableStreamTest.suite());
suite.addTest(AIjdbcTest.suite());
suite.addTest(LargeDataLocksTest.suite());
suite.addTest(DMDBugsTest.suite());
suite.addTest(DataSourceTest.suite());
suite.addTest(SavepointJdbc30Test.suite());
suite.addTest(RelativeTest.suite());
suite.addTest(metadataMultiConnTest.suite());
suite.addTest(ResultSetStreamTest.suite());
suite.addTest(InternationalConnectSimpleDSTest.suite());
suite.addTest(Derby2017LayerATest.suite());
suite.addTest(LobRsGetterTest.suite());
// Old harness .java tests that run using the HarnessJavaTest
// adapter and continue to use a single master file.
suite.addTest(JDBCHarnessJavaTest.suite());
if (JDBC.vmSupportsJDBC3())
{
// Tests that do not run under JSR169
// DERBY-2403 blocks ParameterMappingTest from running
// under JSR169
suite.addTest(ParameterMappingTest.suite());
// Class requires javax.sql.PooledConnection
// even to load, even though the suite method
// is correctly implemented.
suite.addTest(DataSourcePropertiesTest.suite());
// Tests JDBC 3.0 ability to establish a result set of
// auto-generated keys.
suite.addTest(AutoGenJDBC30Test.suite());
// Test uses DriverManager
suite.addTest(DriverMgrAuthenticationTest.suite());
// Tests uses JDBC 3.0 datasources
suite.addTest(PoolDSAuthenticationTest.suite());
suite.addTest(PoolXADSCreateShutdownDBTest.suite());
suite.addTest(Derby5165Test.suite());
suite.addTest(XADSAuthenticationTest.suite());
suite.addTest(XATransactionTest.suite());
suite.addTest(XATest.suite());
// Test uses JDBC 3.0 datasources, and javax.naming.Reference etc.
suite.addTest(DataSourceReferenceTest.suite());
suite.addTest(DataSourceSerializationTest.suite());
// Test uses DriverManager, Pooled and XADataSources, and
// an inner class implements ConnectionEventListener.
suite.addTest(J2EEDataSourceTest.suite());
// Test requires ClientConnectionPoolDataSource.
suite.addTest(ClientConnectionPoolDataSourceTest.suite());
// Test requires ClientConnectionPoolDataSource.
suite.addTest(StatementPoolingTest.suite());
//suite to test updatable reader for clob in embedded driver
suite.addTest (ClobUpdatableReaderTest.suite());
//truncate test for clob
suite.addTest (ClobTruncateTest.suite());
//JSR169 does not support ParameterMetaData
suite.addTest(ParameterMetaDataJdbc30Test.suite());
suite.addTest(CacheSessionDataTest.suite());
// LDAPAuthentication and InvalidLDAPSrvAuth cannot run with JSR169
// implementation because of missing support for authentication
// functionality.
// Also, LDAPAuthentication needs properties passed in or is
// pointless (unless we can find a test LDAP Server)
String ldapServer=getSystemProperty("derbyTesting.ldapServer");
if (ldapServer == null || ldapServer.length() < 1)
suite.addTest(new BaseTestSuite(
"LDAPAuthenticationTest and XAJNDITest require " +
"derbyTesting.ldap* properties."));
else
{
suite.addTest(LDAPAuthenticationTest.suite());
suite.addTest(XAJNDITest.suite());
}
suite.addTest(InvalidLDAPServerAuthenticationTest.suite());
// XA and ConnectionPool Datasource are not available with
// JSR169 so can't run InternationalConnectTest.
suite.addTest(InternationalConnectTest.suite());
// Test requires java.sql.DriverManager
suite.addTest(AutoloadTest.fullAutoloadSuite());
}
return suite;
}
}
|