hadoop-mapreduce-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Loughran (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (MAPREDUCE-4821) Unit Test: TestJobTrackerRestart fails when it is run with ant-1.8.4
Date Tue, 27 Nov 2012 17:19:58 GMT

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

Steve Loughran commented on MAPREDUCE-4821:
-------------------------------------------

is there a JUnit 3 jar in your Ant classpath? There has to be a junit4 one else the test case
won't compile -I suspect your ant installation has a junit jar that's being picked up first
at test run time.

{{ant -diagnostics}} will show this. If it's there, delete it and see what happens when the
original test is rerun.
                
> Unit Test: TestJobTrackerRestart fails when it is run with ant-1.8.4
> --------------------------------------------------------------------
>
>                 Key: MAPREDUCE-4821
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-4821
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>          Components: test
>    Affects Versions: 1.0.3, 1.0.4
>         Environment: RHEL 6.3 on x86
>            Reporter: Amir Sanjar
>             Fix For: 1.0.3, 1.1.1
>
>         Attachments: MAPREDUCE-4821-branch1.patch, MAPREDUCE-4821-release-1.0.3.patch
>
>
> Problem:
> JUnit tag @Ignore is not recognized since the testcase is JUnit3 and not JUnit4:
> Solution:
> Migrate the testcase to JUnit4, including:
> * Remove extends TestCase"
> * Remove import junit.framework.TestCase;
> * Add import org.junit.*; 
> * Use appropriate annotations such as @After, @Before, @Test.
> uploading a patch shortly 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message