You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sqoop.apache.org by "Szabolcs Vasas (JIRA)" <ji...@apache.org> on 2018/03/26 13:51:00 UTC
[jira] [Assigned] (SQOOP-3308) Mock ConnManager field in
TestTableDefWriter
[ https://issues.apache.org/jira/browse/SQOOP-3308?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Szabolcs Vasas reassigned SQOOP-3308:
-------------------------------------
Assignee: Szabolcs Vasas
> Mock ConnManager field in TestTableDefWriter
> --------------------------------------------
>
> Key: SQOOP-3308
> URL: https://issues.apache.org/jira/browse/SQOOP-3308
> Project: Sqoop
> Issue Type: Sub-task
> Affects Versions: 1.5.0
> Reporter: Szabolcs Vasas
> Assignee: Szabolcs Vasas
> Priority: Major
>
> TableDefWriter has a dependency on ConnManager to retrieve the names and the types of the table. It also introduces a field called _externalColTypes_ for testing purposes and TestTableDefWriter uses this field to inject the test table column names and types instead of mocking the ConnManager field.
> This setup makes it harder to add test cases to TestTableDefWriter and not a good practice so it should be fixed.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)