[
https://issues.apache.org/jira/browse/SQOOP-1770?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14219547#comment-14219547
]
Jarek Jarcec Cecho commented on SQOOP-1770:
-------------------------------------------
Interesting observation [~richard_zhou]. I would expect that JUnit won't call
the same method twice.
I don't think that removing the method body in {{ConnectorTestCase}} is valid
solution to the problem as that method is not the same as in class
{{TomcatTestCase}}. {{TomcatTestCase]} is using {{HadoopLocalRunner}} as a
default whereas the {{ConnectorTestCase}} is using {{HadoopMiniClusterRunner}}
instead and I think that we should not change this. Perhaps let's find a
different way how to accomplish different default values while executing this
method only once?
> Ducplicate startHadoop function in integration test
> ---------------------------------------------------
>
> Key: SQOOP-1770
> URL: https://issues.apache.org/jira/browse/SQOOP-1770
> Project: Sqoop
> Issue Type: Bug
> Components: sqoop2-test
> Reporter: Richard
> Assignee: Richard
> Attachments: diff.patch
>
>
> Duplicate startHadoop function in ConnectorTestCase and TomcatTestCase.
> As ConnectorTestCase extends TomcatTestCase, the startHadoop function will
> run twice.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)