You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Akira Ajisaka (JIRA)" <ji...@apache.org> on 2016/11/26 02:06:58 UTC

[jira] [Resolved] (HADOOP-9024) Unit Test: TestKerberosAuthenticator fails when tested with ant-1.8.4

     [ https://issues.apache.org/jira/browse/HADOOP-9024?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Akira Ajisaka resolved HADOOP-9024.
-----------------------------------
       Resolution: Won't Fix
    Fix Version/s:     (was: 1.0.4)
                       (was: 1.0.3)

branch-1 is now effectively EOL. Closing.

> Unit Test: TestKerberosAuthenticator fails when tested  with ant-1.8.4
> ----------------------------------------------------------------------
>
>                 Key: HADOOP-9024
>                 URL: https://issues.apache.org/jira/browse/HADOOP-9024
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: test
>    Affects Versions: 1.0.3, 1.0.4
>         Environment: Linux Fedora 17_64
>            Reporter: Amir Sanjar
>            Priority: Minor
>         Attachments: HADOOP-9024-branch-1.patch
>
>
> 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 was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: common-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-dev-help@hadoop.apache.org