You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mapreduce-issues@hadoop.apache.org by "Amir Sanjar (JIRA)" <ji...@apache.org> on 2012/11/13 19:48:12 UTC

[jira] [Commented] (MAPREDUCE-4792) Unit Test TestJobTrackerRestartWithLostTracker fails with ant-1.8.4

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

Amir Sanjar commented on MAPREDUCE-4792:
----------------------------------------

testcase is not in the trunk

                
> Unit Test TestJobTrackerRestartWithLostTracker fails with ant-1.8.4
> -------------------------------------------------------------------
>
>                 Key: MAPREDUCE-4792
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-4792
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>          Components: test
>    Affects Versions: 1.0.3, 1.0.4
>         Environment: fedora 17_64 x86
>            Reporter: Amir Sanjar
>             Fix For: 1.0.4, 1.1.1
>
>
> Problem:
> JUnit tag @Ignore is not recognized since the testcase is JUnit3 and not JUnit4:
> Solution:
> Migrate the testcase to JUnit4
> How:
> Remove extends TestCase"
> SetUp and TearDown methods
> @Override
> protected void setUp() throws Exception { }
> replaced by:
> @Before
> public void setUp() throws Exception { }
> Same for tearDown():
> @Override
> protected void tearDown() throws Exception { }
> replaced by
> @After
> public void tearDown() throws Exception { }
> Imports
> The imports has to be reorganized:
> Remove import junit.framework.TestCase;
> Add org.junit.*; or import org.junit.After; import org.junit.Before; import org.junit.Test;

--
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