/**
 * 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.hadoop.sqoop;

import org.apache.hadoop.sqoop.hive.TestHiveImport;
import org.apache.hadoop.sqoop.hive.TestTableDefWriter;
import org.apache.hadoop.sqoop.io.TestSplittableBufferedWriter;
import org.apache.hadoop.sqoop.lib.TestFieldFormatter;
import org.apache.hadoop.sqoop.lib.TestRecordParser;
import org.apache.hadoop.sqoop.manager.TestHsqldbManager;
import org.apache.hadoop.sqoop.manager.TestSqlManager;
import org.apache.hadoop.sqoop.mapred.MapredTests;
import org.apache.hadoop.sqoop.mapreduce.MapreduceTests;
import org.apache.hadoop.sqoop.orm.TestClassWriter;
import org.apache.hadoop.sqoop.orm.TestParseMethods;

import junit.framework.Test;
import junit.framework.TestSuite;

/**
 * Smoke tests for Sqoop (org.apache.hadoop.sqoop)
 */
public final class SmokeTests {

  private SmokeTests() { }

  public static Test suite() {
    TestSuite suite = new TestSuite("Smoke tests for org.apache.hadoop.sqoop");

    suite.addTestSuite(TestAllTables.class);
    suite.addTestSuite(TestHsqldbManager.class);
    suite.addTestSuite(TestSqlManager.class);
    suite.addTestSuite(TestClassWriter.class);
    suite.addTestSuite(TestColumnTypes.class);
    suite.addTestSuite(TestMultiCols.class);
    suite.addTestSuite(TestMultiMaps.class);
    suite.addTestSuite(TestSplitBy.class);
    suite.addTestSuite(TestWhere.class);
    suite.addTestSuite(TestHiveImport.class);
    suite.addTestSuite(TestRecordParser.class);
    suite.addTestSuite(TestFieldFormatter.class);
    suite.addTestSuite(TestImportOptions.class);
    suite.addTestSuite(TestParseMethods.class);
    suite.addTestSuite(TestConnFactory.class);
    suite.addTestSuite(TestSplittableBufferedWriter.class);
    suite.addTestSuite(TestTableDefWriter.class);
    suite.addTest(MapreduceTests.suite());

    return suite;
  }

}

