MAPREDUCE-5448. Addendum fix to remove deprecation warning by junit.Assert import in TestFileOutputCommitter.
(cherry picked from commit 4cd54d9a29
)
This commit is contained in:
parent
40682a4aad
commit
6e6e0e4a37
|
@ -27,7 +27,6 @@ import java.util.concurrent.ExecutorService;
|
||||||
import java.util.concurrent.Executors;
|
import java.util.concurrent.Executors;
|
||||||
import java.util.concurrent.TimeUnit;
|
import java.util.concurrent.TimeUnit;
|
||||||
|
|
||||||
import junit.framework.Assert;
|
|
||||||
import junit.framework.TestCase;
|
import junit.framework.TestCase;
|
||||||
|
|
||||||
import org.apache.commons.logging.Log;
|
import org.apache.commons.logging.Log;
|
||||||
|
@ -315,7 +314,7 @@ public class TestFileOutputCommitter extends TestCase {
|
||||||
try {
|
try {
|
||||||
MapFileOutputFormat.getReaders(outDir, conf);
|
MapFileOutputFormat.getReaders(outDir, conf);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
Assert.fail("Fail to read from MapFileOutputFormat: " + e);
|
fail("Fail to read from MapFileOutputFormat: " + e);
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue