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
The following commit(s) were added to refs/heads/master by this push:
new 328cddab Fix broken tests.
328cddab is described below
commit 328cddab73ac3708606e24e784ade4255ee3b056
Author: Gary Gregory <[email protected]>
AuthorDate: Thu May 5 15:40:57 2022 -0400
Fix broken tests.
---
.../commons/compress/compressors/z/ZCompressorInputStreamTest.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git
a/src/test/java/org/apache/commons/compress/compressors/z/ZCompressorInputStreamTest.java
b/src/test/java/org/apache/commons/compress/compressors/z/ZCompressorInputStreamTest.java
index 056cd964..145bf723 100644
---
a/src/test/java/org/apache/commons/compress/compressors/z/ZCompressorInputStreamTest.java
+++
b/src/test/java/org/apache/commons/compress/compressors/z/ZCompressorInputStreamTest.java
@@ -30,6 +30,7 @@ import java.util.Collections;
import org.apache.commons.compress.utils.IOUtils;
import static org.apache.commons.compress.AbstractTestCase.getFile;
+import static org.junit.Assert.assertThrows;
/**
* Unit tests for class {@link ZCompressorInputStream}.
@@ -39,11 +40,10 @@ import static
org.apache.commons.compress.AbstractTestCase.getFile;
**/
public class ZCompressorInputStreamTest {
-
@Test
- public void testFailsToCreateZCompressorInputStreamAndThrowsIOException()
throws IOException {
+ public void testFailsToCreateZCompressorInputStreamAndThrowsIOException() {
final SequenceInputStream sequenceInputStream = new
SequenceInputStream(Collections.emptyEnumeration());
- final ZCompressorInputStream zCompressorInputStream = new
ZCompressorInputStream(sequenceInputStream);
+ assertThrows(IOException.class, () -> new
ZCompressorInputStream(sequenceInputStream));
}
@Test