[
https://issues.apache.org/jira/browse/SQOOP-1873?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Veena Basavaraj updated SQOOP-1873:
-----------------------------------
Description:
Map reduce tests in the mapreduce package should mock/ use a test class the IDF
and not rely on a concrete CSVIDF directly.
Also it should add tests for from and to IDF been different
Basic 101 of unit testing is to use mocks for unrelated objects
public class MRJobTestUtil
public class TestMapReduce
public class TestSqoopOutputFormatLoadExecutor
was:
Map reduce tests in the mapreduce package should mock/ use a test class the IDF
and not rely on a concrete CSVIDF directly.
Basic 101 of unit testing is to use mocks for unrelated objects
public class MRJobTestUtil
public class TestMapReduce
public class TestSqoopOutputFormatLoadExecutor
> Fix Mapreduce tests to use mocks/ test class for IDF
> ----------------------------------------------------
>
> Key: SQOOP-1873
> URL: https://issues.apache.org/jira/browse/SQOOP-1873
> Project: Sqoop
> Issue Type: Sub-task
> Components: sqoop2-framework
> Reporter: Veena Basavaraj
> Labels: tech-debt-test, unit-test
> Fix For: 1.99.5
>
>
> Map reduce tests in the mapreduce package should mock/ use a test class the
> IDF and not rely on a concrete CSVIDF directly.
> Also it should add tests for from and to IDF been different
> Basic 101 of unit testing is to use mocks for unrelated objects
> public class MRJobTestUtil
> public class TestMapReduce
> public class TestSqoopOutputFormatLoadExecutor
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)