[ 
https://issues.apache.org/jira/browse/SQOOP-2303?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14493295#comment-14493295
 ] 

Hudson commented on SQOOP-2303:
-------------------------------

SUCCESS: Integrated in Sqoop2-hadoop200 #824 (See 
[https://builds.apache.org/job/Sqoop2-hadoop200/824/])
SQOOP-2303: EmptyTypeList when returned from DatabaseProvider class results in 
NPE in TestNG (jarcec: 
https://git-wip-us.apache.org/repos/asf?p=sqoop.git&a=commit&h=5ea695a6d93476b5d267babec90210f451ea23fd)
* 
common-test/src/main/java/org/apache/sqoop/common/test/db/DatabaseProvider.java
* 
common-test/src/main/java/org/apache/sqoop/common/test/db/types/DefaultTypeList.java
* 
common-test/src/main/java/org/apache/sqoop/common/test/db/types/EmptyTypeList.java


> 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.7
>
>         Attachments: SQOOP-2303-1.patch, SQOOP-2303-2.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)

Reply via email to