|
@@ -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.
|