You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sqoop.apache.org by "Syed A. Hashmi (JIRA)" <ji...@apache.org> on 2015/04/13 23:27:12 UTC

[jira] [Updated] (SQOOP-2303) EmptyTypeList when returned from DatabaseProvider class results in NPE in TestNG

     [ https://issues.apache.org/jira/browse/SQOOP-2303?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Syed A. Hashmi updated SQOOP-2303:
----------------------------------
    Attachment: SQOOP-2303-1.patch

> EmptyTypeList when returned from DatabaseProvider class results in NPE in TestNG
> --------------------------------------------------------------------------------
>
>                 Key: SQOOP-2303
>                 URL: https://issues.apache.org/jira/browse/SQOOP-2303
>             Project: Sqoop
>          Issue Type: Bug
>          Components: sqoop2-test
>    Affects Versions: 1.99.5
>            Reporter: Syed A. Hashmi
>            Assignee: Syed A. Hashmi
>             Fix For: 1.99.6
>
>         Attachments: SQOOP-2303-1.patch
>
>
> Right now by default DatabaseProvider class returns EmptyTypeList. But surprisingly, TestNG is unable to handle empty list and throws NPE in tests which run for DB providers which dont have their own TypesLists.
> We should add a DefaultTypesList which returns a minimal type (INT) and some tests on it and return it by default instead of EmptyTypeList.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)