hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Amir Sanjar (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HADOOP-9024) Unit Test: TestKerberosAuthenticator fails when tested with ant-1.8.4
Date Mon, 12 Nov 2012 18:13:12 GMT
Amir Sanjar created HADOOP-9024:

             Summary: 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.4, 1.0.3
         Environment: Linux Fedora 17_64
            Reporter: Amir Sanjar
            Priority: Minor
             Fix For: 1.0.4, 1.0.3

JUnit tag @Ignore is not recognized since the testcase is JUnit3 and not JUnit4:
Migrate the testcase to JUnit4

Remove extends TestCase"

SetUp and TearDown methods

protected void setUp() throws Exception { }

replaced by:

public void setUp() throws Exception { }

Same for tearDown():

protected void tearDown() throws Exception { }

replaced by

public void tearDown() throws Exception { }


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

View raw message