SQOOP-931: Integrate HCatalog with Sqoop
[sqoop.git] / src / test / com / cloudera / sqoop / ThirdPartyTests.java
1 /**
2 * Licensed to the Apache Software Foundation (ASF) under one
3 * or more contributor license agreements. See the NOTICE file
4 * distributed with this work for additional information
5 * regarding copyright ownership. The ASF licenses this file
6 * to you under the Apache License, Version 2.0 (the
7 * "License"); you may not use this file except in compliance
8 * with the License. You may obtain a copy of the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
17 */
18
19 package com.cloudera.sqoop;
20
21 import org.apache.sqoop.hcat.HCatalogExportTest;
22 import org.apache.sqoop.hcat.HCatalogImportTest;
23
24 import com.cloudera.sqoop.hbase.HBaseImportTest;
25 import com.cloudera.sqoop.hbase.HBaseQueryImportTest;
26 import com.cloudera.sqoop.hbase.HBaseUtilTest;
27 import junit.framework.Test;
28 import junit.framework.TestCase;
29 import junit.framework.TestSuite;
30
31 import com.cloudera.sqoop.manager.DirectMySQLTest;
32 import com.cloudera.sqoop.manager.DirectMySQLExportTest;
33 import com.cloudera.sqoop.manager.JdbcMySQLExportTest;
34 import com.cloudera.sqoop.manager.MySQLAuthTest;
35 import com.cloudera.sqoop.manager.MySQLCompatTest;
36 import com.cloudera.sqoop.manager.OracleExportTest;
37 import com.cloudera.sqoop.manager.OracleManagerTest;
38 import com.cloudera.sqoop.manager.OracleCompatTest;
39 import com.cloudera.sqoop.manager.PostgresqlExportTest;
40 import com.cloudera.sqoop.manager.PostgresqlImportTest;
41
42 /**
43 * Test battery including all tests of vendor-specific ConnManager
44 * implementations. These tests likely aren't run by Apache Hudson, because
45 * they require configuring and using Oracle, MySQL, etc., which may have
46 * incompatible licenses with Apache.
47 */
48 public final class ThirdPartyTests extends TestCase {
49
50 private ThirdPartyTests() { }
51
52 public static Test suite() {
53 TestSuite suite = new TestSuite("Tests vendor-specific ConnManager "
54 + "implementations in Sqoop and tests with third party dependencies");
55
56 // MySQL
57 suite.addTestSuite(DirectMySQLTest.class);
58 suite.addTestSuite(DirectMySQLExportTest.class);
59 suite.addTestSuite(JdbcMySQLExportTest.class);
60 suite.addTestSuite(MySQLAuthTest.class);
61 suite.addTestSuite(MySQLCompatTest.class);
62
63 // Oracle
64 suite.addTestSuite(OracleExportTest.class);
65 suite.addTestSuite(OracleManagerTest.class);
66 suite.addTestSuite(OracleCompatTest.class);
67
68 // PostgreSQL
69 suite.addTestSuite(PostgresqlImportTest.class);
70 suite.addTestSuite(PostgresqlExportTest.class);
71
72 // Hbase
73 suite.addTestSuite(HBaseImportTest.class);
74 suite.addTestSuite(HBaseQueryImportTest.class);
75 suite.addTestSuite(HBaseUtilTest.class);
76
77 // HCatalog
78 suite.addTestSuite(HCatalogImportTest.class);
79 suite.addTestSuite(HCatalogExportTest.class);
80
81 return suite;
82 }
83
84 }
85