MAPREDUCE-5448. Addendum fix to remove deprecation warning by junit.Assert import in TestFileOutputCommitter.
Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/4cd54d9a Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/4cd54d9a Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/4cd54d9a Branch: refs/heads/YARN-2139 Commit: 4cd54d9a297435150ab61803284eb05603f114e2 Parents: 8770c82 Author: Harsh J <ha...@cloudera.com> Authored: Sun Mar 22 10:33:15 2015 +0530 Committer: Harsh J <ha...@cloudera.com> Committed: Sun Mar 22 10:33:15 2015 +0530 ---------------------------------------------------------------------- .../hadoop/mapreduce/lib/output/TestFileOutputCommitter.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hadoop/blob/4cd54d9a/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/test/java/org/apache/hadoop/mapreduce/lib/output/TestFileOutputCommitter.java ---------------------------------------------------------------------- diff --git a/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/test/java/org/apache/hadoop/mapreduce/lib/output/TestFileOutputCommitter.java b/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/test/java/org/apache/hadoop/mapreduce/lib/output/TestFileOutputCommitter.java index 5c4428b..7678f35 100644 --- a/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/test/java/org/apache/hadoop/mapreduce/lib/output/TestFileOutputCommitter.java +++ b/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/test/java/org/apache/hadoop/mapreduce/lib/output/TestFileOutputCommitter.java @@ -27,7 +27,6 @@ import java.util.concurrent.ExecutorService; 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 @@ public class TestFileOutputCommitter extends TestCase { 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(); }