You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2024/02/28 20:06:42 UTC
(commons-compress) 03/05: Simplify test setups
This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-compress.git
commit b7c7603d825991f591f72636d2efc7add0553bc1
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Wed Feb 28 15:03:21 2024 -0500
Simplify test setups
---
.../compress/compressors/brotli/BrotliCompressorInputStreamTest.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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 f99de7aa0..3b854993e 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
@@ -52,7 +52,7 @@ public class BrotliCompressorInputStreamTest extends AbstractTest {
public void testBrotliDecode() throws IOException {
try (InputStream inputStream = newInputStream("brotli.testdata.compressed");
BrotliCompressorInputStream brotliInputStream = new BrotliCompressorInputStream(inputStream)) {
- final byte[] expected = Files.readAllBytes(getPath("brotli.testdata.uncompressed"));
+ final byte[] expected = readAllBytes("brotli.testdata.uncompressed");
final ByteArrayOutputStream bos = new ByteArrayOutputStream();
int readByte = -1;
while ((readByte = brotliInputStream.read()) != -1) {