You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by bo...@apache.org on 2017/05/03 11:46:22 UTC
[2/2] commons-compress git commit: COMPRESS-392 tweaks
COMPRESS-392 tweaks
Project: http://git-wip-us.apache.org/repos/asf/commons-compress/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-compress/commit/037209cb
Tree: http://git-wip-us.apache.org/repos/asf/commons-compress/tree/037209cb
Diff: http://git-wip-us.apache.org/repos/asf/commons-compress/diff/037209cb
Branch: refs/heads/master
Commit: 037209cb3e585e59ead364b36d1f1b82a2fc8d54
Parents: 4e61985
Author: Stefan Bodewig <bo...@apache.org>
Authored: Wed May 3 13:46:03 2017 +0200
Committer: Stefan Bodewig <bo...@apache.org>
Committed: Wed May 3 13:46:03 2017 +0200
----------------------------------------------------------------------
.../brotli/BrotliCompressorInputStreamTest.java | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/commons-compress/blob/037209cb/src/test/java/org/apache/commons/compress/compressors/brotli/BrotliCompressorInputStreamTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/compress/compressors/brotli/BrotliCompressorInputStreamTest.java b/src/test/java/org/apache/commons/compress/compressors/brotli/BrotliCompressorInputStreamTest.java
index da44ea5..208224f 100644
--- a/src/test/java/org/apache/commons/compress/compressors/brotli/BrotliCompressorInputStreamTest.java
+++ b/src/test/java/org/apache/commons/compress/compressors/brotli/BrotliCompressorInputStreamTest.java
@@ -42,8 +42,8 @@ public class BrotliCompressorInputStreamTest extends AbstractTestCase {
*/
@Test
public void testBrotliDecode() throws IOException {
- final File input = AbstractTestCase.getFile("brotli.testdata.compressed");
- final File expected = AbstractTestCase.getFile("brotli.testdata.uncompressed");
+ final File input = getFile("brotli.testdata.compressed");
+ final File expected = getFile("brotli.testdata.uncompressed");
try (InputStream inputStream = new FileInputStream(input);
InputStream expectedStream = new FileInputStream(expected);
BrotliCompressorInputStream brotliInputStream = new BrotliCompressorInputStream(inputStream)) {
@@ -59,7 +59,7 @@ public class BrotliCompressorInputStreamTest extends AbstractTestCase {
}
@Test
- public void testCachingIsEnabledByDefaultAndXZIsPresent() {
+ public void testCachingIsEnabledByDefaultAndBrotliIsPresent() {
assertEquals(BrotliUtils.CachedAvailability.CACHED_AVAILABLE, BrotliUtils.getCachedBrotliAvailability());
assertTrue(BrotliUtils.isBrotliCompressionAvailable());
}
@@ -90,7 +90,7 @@ public class BrotliCompressorInputStreamTest extends AbstractTestCase {
@Test
public void availableShouldReturnZero() throws IOException {
- final File input = AbstractTestCase.getFile("brotli.testdata.compressed");
+ final File input = getFile("brotli.testdata.compressed");
try (InputStream is = new FileInputStream(input)) {
final BrotliCompressorInputStream in =
new BrotliCompressorInputStream(is);
@@ -101,7 +101,7 @@ public class BrotliCompressorInputStreamTest extends AbstractTestCase {
@Test
public void shouldBeAbleToSkipAByte() throws IOException {
- final File input = AbstractTestCase.getFile("brotli.testdata.compressed");
+ final File input = getFile("brotli.testdata.compressed");
try (InputStream is = new FileInputStream(input)) {
final BrotliCompressorInputStream in =
new BrotliCompressorInputStream(is);
@@ -112,7 +112,7 @@ public class BrotliCompressorInputStreamTest extends AbstractTestCase {
@Test
public void singleByteReadWorksAsExpected() throws IOException {
- final File input = AbstractTestCase.getFile("brotli.testdata.compressed");
+ final File input = getFile("brotli.testdata.compressed");
try (InputStream is = new FileInputStream(input)) {
final BrotliCompressorInputStream in =
new BrotliCompressorInputStream(is);
@@ -124,7 +124,7 @@ public class BrotliCompressorInputStreamTest extends AbstractTestCase {
@Test
public void singleByteReadReturnsMinusOneAtEof() throws IOException {
- final File input = AbstractTestCase.getFile("brotli.testdata.compressed");
+ final File input = getFile("brotli.testdata.compressed");
try (InputStream is = new FileInputStream(input)) {
final BrotliCompressorInputStream in =
new BrotliCompressorInputStream(is);