You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by li...@apache.org on 2017/08/27 22:22:48 UTC
hadoop git commit: MAPREDUCE-6945. TestMapFileOutputFormat missing
@after annotation. Contributed by Ajay Kumar
Repository: hadoop
Updated Branches:
refs/heads/trunk 077a5eed9 -> ae7abad3d
MAPREDUCE-6945. TestMapFileOutputFormat missing @after annotation. Contributed by Ajay Kumar
Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/ae7abad3
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/ae7abad3
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/ae7abad3
Branch: refs/heads/trunk
Commit: ae7abad3d9f9a82e4deadd9dbad72b0db7310039
Parents: 077a5ee
Author: Mingliang Liu <li...@apache.org>
Authored: Sun Aug 27 15:19:55 2017 -0700
Committer: Mingliang Liu <li...@apache.org>
Committed: Sun Aug 27 15:19:55 2017 -0700
----------------------------------------------------------------------
.../java/org/apache/hadoop/mapred/TestMapFileOutputFormat.java | 6 ++++--
.../hadoop/mapreduce/lib/output/TestMapFileOutputFormat.java | 2 ++
2 files changed, 6 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/hadoop/blob/ae7abad3/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/test/java/org/apache/hadoop/mapred/TestMapFileOutputFormat.java
----------------------------------------------------------------------
diff --git a/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/test/java/org/apache/hadoop/mapred/TestMapFileOutputFormat.java b/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/test/java/org/apache/hadoop/mapred/TestMapFileOutputFormat.java
index 7e315ae..b82cd70 100644
--- a/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/test/java/org/apache/hadoop/mapred/TestMapFileOutputFormat.java
+++ b/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/test/java/org/apache/hadoop/mapred/TestMapFileOutputFormat.java
@@ -24,6 +24,7 @@ import org.apache.hadoop.io.Text;
import org.apache.hadoop.io.Writable;
import org.apache.hadoop.io.WritableComparable;
import org.apache.hadoop.io.MapFile.Reader;
+import org.junit.After;
import org.junit.Test;
import org.mockito.Mockito;
@@ -40,9 +41,10 @@ public class TestMapFileOutputFormat {
assertTrue(!MyPartitioner.isGetPartitionCalled());
}
- protected void tearDown() throws Exception {
+ @After
+ public void tearDown() throws Exception {
MyPartitioner.setGetPartitionCalled(false);
- };
+ }
private static class MyPartitioner
implements
Partitioner<WritableComparable, Writable> {
http://git-wip-us.apache.org/repos/asf/hadoop/blob/ae7abad3/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/test/java/org/apache/hadoop/mapreduce/lib/output/TestMapFileOutputFormat.java
----------------------------------------------------------------------
diff --git a/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/test/java/org/apache/hadoop/mapreduce/lib/output/TestMapFileOutputFormat.java b/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/test/java/org/apache/hadoop/mapreduce/lib/output/TestMapFileOutputFormat.java
index 82758f1..47220be 100644
--- a/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/test/java/org/apache/hadoop/mapreduce/lib/output/TestMapFileOutputFormat.java
+++ b/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/test/java/org/apache/hadoop/mapreduce/lib/output/TestMapFileOutputFormat.java
@@ -25,6 +25,7 @@ import org.apache.hadoop.io.Writable;
import org.apache.hadoop.io.WritableComparable;
import org.apache.hadoop.io.MapFile.Reader;
import org.apache.hadoop.mapreduce.Partitioner;
+import org.junit.After;
import org.junit.Test;
import org.mockito.Mockito;
@@ -41,6 +42,7 @@ public class TestMapFileOutputFormat {
assertTrue(!MyPartitioner.isGetPartitionCalled());
}
+ @After
public void tearDown() throws Exception {
MyPartitioner.setGetPartitionCalled(false);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org