sqoop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject sqoop git commit: SQOOP-2442: Sqoop2: Generic JDBC: Drop tests for specifying schema name and custom SQL at the same time
Date Wed, 12 Aug 2015 20:07:16 GMT
Repository: sqoop
Updated Branches:
  refs/heads/sqoop2 5b691c2b1 -> 63c5dd57a


SQOOP-2442: Sqoop2: Generic JDBC: Drop tests for specifying schema name and custom SQL at
the same time

(Jarek Jarcec Cecho via Abraham Elmahrek)


Project: http://git-wip-us.apache.org/repos/asf/sqoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/sqoop/commit/63c5dd57
Tree: http://git-wip-us.apache.org/repos/asf/sqoop/tree/63c5dd57
Diff: http://git-wip-us.apache.org/repos/asf/sqoop/diff/63c5dd57

Branch: refs/heads/sqoop2
Commit: 63c5dd57afacf63e77d3486974b4216b72d503cb
Parents: 5b691c2
Author: Abraham Elmahrek <abe@apache.org>
Authored: Wed Aug 12 13:01:28 2015 -0700
Committer: Abraham Elmahrek <abe@apache.org>
Committed: Wed Aug 12 13:01:28 2015 -0700

----------------------------------------------------------------------
 .../sqoop/connector/jdbc/TestToInitializer.java | 21 --------------------
 1 file changed, 21 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/sqoop/blob/63c5dd57/connector/connector-generic-jdbc/src/test/java/org/apache/sqoop/connector/jdbc/TestToInitializer.java
----------------------------------------------------------------------
diff --git a/connector/connector-generic-jdbc/src/test/java/org/apache/sqoop/connector/jdbc/TestToInitializer.java
b/connector/connector-generic-jdbc/src/test/java/org/apache/sqoop/connector/jdbc/TestToInitializer.java
index 7e36666..870ce98 100644
--- a/connector/connector-generic-jdbc/src/test/java/org/apache/sqoop/connector/jdbc/TestToInitializer.java
+++ b/connector/connector-generic-jdbc/src/test/java/org/apache/sqoop/connector/jdbc/TestToInitializer.java
@@ -190,27 +190,6 @@ public class TestToInitializer {
     verifyResult(context, "INSERT INTO " + fullTableName + " (" + tableColumns + ") VALUES
(?,?)");
   }
 
-  @Test
-  @SuppressWarnings("unchecked")
-  public void testTableSqlWithSchema() throws Exception {
-    LinkConfiguration linkConfig = new LinkConfiguration();
-    ToJobConfiguration jobConfig = new ToJobConfiguration();
-
-    linkConfig.linkConfig.jdbcDriver = GenericJdbcTestConstants.DRIVER;
-    linkConfig.linkConfig.connectionString = GenericJdbcTestConstants.URL;
-    jobConfig.toJobConfig.schemaName = schemaName;
-    jobConfig.toJobConfig.sql = tableSql;
-
-    MutableContext context = new MutableMapContext();
-    InitializerContext initializerContext = new InitializerContext(context);
-
-    @SuppressWarnings("rawtypes")
-    Initializer initializer = new GenericJdbcToInitializer();
-    initializer.initialize(initializerContext, linkConfig, jobConfig);
-
-    verifyResult(context, tableSql);
-  }
-
   private void verifyResult(MutableContext context, String dataSql) {
     assertEquals(dataSql, context.getString(
         GenericJdbcConnectorConstants.CONNECTOR_JDBC_TO_DATA_SQL));


Mime
View raw message