Uploaded image for project: 'Hadoop Map/Reduce'
  1. Hadoop Map/Reduce
  2. MAPREDUCE-4781

Unit test TestKerberosAuthenticationHandler fails with ant 1.8.3+

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.0.3
    • None
    • None
    • None
    • Fedora 17_64 on x86

    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. MAPREDUCE-4781-branch-1.patch
          3 kB
          Amir F Sanjar
        2. HADOOP-4781.patch
          4 kB
          Amir F Sanjar

        Activity

          People

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

            Dates

              Created:
              Updated: