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 b5ca3de7 Fix broken tests.
b5ca3de7 is described below
commit b5ca3de766b4d408f8f44096c74f5d93f315ae6e
Author: Gary Gregory <[email protected]>
AuthorDate: Thu May 5 15:10:05 2022 -0400
Fix broken tests.
---
.../apache/commons/compress/archivers/examples/SevenZArchiverTest.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git
a/src/test/java/org/apache/commons/compress/archivers/examples/SevenZArchiverTest.java
b/src/test/java/org/apache/commons/compress/archivers/examples/SevenZArchiverTest.java
index a66f6f3c..162ace51 100644
---
a/src/test/java/org/apache/commons/compress/archivers/examples/SevenZArchiverTest.java
+++
b/src/test/java/org/apache/commons/compress/archivers/examples/SevenZArchiverTest.java
@@ -33,6 +33,7 @@ import java.nio.file.StandardOpenOption;
import org.apache.commons.compress.AbstractTestCase;
import org.apache.commons.compress.archivers.ArchiveEntry;
import org.apache.commons.compress.archivers.ArchiveException;
+import org.apache.commons.compress.archivers.StreamingNotSupportedException;
import org.apache.commons.compress.archivers.sevenz.SevenZFile;
import org.junit.Assert;
import org.junit.jupiter.api.BeforeEach;
@@ -65,7 +66,7 @@ public class SevenZArchiverTest extends AbstractTestCase {
@Test
public void outputStreamVersion() throws IOException, ArchiveException {
try (OutputStream os = Files.newOutputStream(target.toPath())) {
- new Archiver().create("7z", os, dir);
+ assertThrows(StreamingNotSupportedException.class, () -> new
Archiver().create("7z", os, dir));
}
}