Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-9024

Unit Test: TestKerberosAuthenticator fails when tested with ant-1.8.4

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Won't Fix
    • 1.0.3, 1.0.4
    • None
    • test
    • None
    • Linux Fedora 17_64

    Description

      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;

      Attachments

        1. HADOOP-9024-branch-1.patch
          5 kB
          Amir F Sanjar

        Activity

          People

            Unassigned Unassigned
            asanjar Amir F Sanjar
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: