浏览代码

HADOOP-11800. Clean up some test methods in TestCodec.java. Contributed by Brahma Reddy Battula.

(cherry picked from commit 228ae9aaa40750cb796bbdfd69ba5646c28cd4e7)
Akira Ajisaka 10 年之前
父节点
当前提交
5ea64e6722

+ 3 - 0
hadoop-common-project/hadoop-common/CHANGES.txt

@@ -58,6 +58,9 @@ Release 2.8.0 - UNRELEASED
     HADOOP-11760. Fix typo of javadoc in DistCp. (Brahma Reddy Battula via
     HADOOP-11760. Fix typo of javadoc in DistCp. (Brahma Reddy Battula via
     ozawa).
     ozawa).
 
 
+    HADOOP-11800. Clean up some test methods in TestCodec.java.
+    (Brahma Reddy Battula via aajisaka)
+
 Release 2.7.0 - UNRELEASED
 Release 2.7.0 - UNRELEASED
 
 
   INCOMPATIBLE CHANGES
   INCOMPATIBLE CHANGES

+ 2 - 2
hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/io/compress/TestCodec.java

@@ -832,7 +832,7 @@ public class TestCodec {
     br.close();
     br.close();
   }
   }
 
 
-  public void testGzipCodecWrite(boolean useNative) throws IOException {
+  private void testGzipCodecWrite(boolean useNative) throws IOException {
     // Create a gzipped file using a compressor from the CodecPool,
     // Create a gzipped file using a compressor from the CodecPool,
     // and try to read it back via the regular GZIPInputStream.
     // and try to read it back via the regular GZIPInputStream.
 
 
@@ -902,7 +902,7 @@ public class TestCodec {
   public void testGzipNativeCodecWrite() throws IOException {
   public void testGzipNativeCodecWrite() throws IOException {
     testGzipCodecWrite(true);
     testGzipCodecWrite(true);
   }
   }
-
+  @Test
   public void testCodecPoolAndGzipDecompressor() {
   public void testCodecPoolAndGzipDecompressor() {
     // BuiltInZlibInflater should not be used as the GzipCodec decompressor.
     // BuiltInZlibInflater should not be used as the GzipCodec decompressor.
     // Assert that this is the case.
     // Assert that this is the case.