MAPREDUCE-5448. Addendum fix to remove deprecation warning by junit.Assert import in TestFileOutputCommitter.

This commit is contained in:
Harsh J 2015-03-22 10:33:15 +05:30
parent 8770c82acc
commit 4cd54d9a29

View File

@ -27,7 +27,6 @@
import java.util.concurrent.Executors;
import java.util.concurrent.TimeUnit;
import junit.framework.Assert;
import junit.framework.TestCase;
import org.apache.commons.logging.Log;
@ -315,7 +314,7 @@ private void testMapFileOutputCommitterInternal(int version)
try {
MapFileOutputFormat.getReaders(outDir, conf);
} catch (Exception e) {
Assert.fail("Fail to read from MapFileOutputFormat: " + e);
fail("Fail to read from MapFileOutputFormat: " + e);
e.printStackTrace();
}