You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sqoop.apache.org by ab...@apache.org on 2015/08/12 22:07:16 UTC
sqoop git commit: SQOOP-2442: Sqoop2: Generic JDBC: Drop tests for
specifying schema name and custom SQL at the same time
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 <ab...@apache.org>
Authored: Wed Aug 12 13:01:28 2015 -0700
Committer: Abraham Elmahrek <ab...@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));