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/05/15 19:58:32 UTC
(commons-compress) branch master updated: Fix test
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 730f5d6f9 Fix test
730f5d6f9 is described below
commit 730f5d6f9eedd0e917ddcb8b5a314580f9d7fd4b
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Wed May 15 15:58:27 2024 -0400
Fix test
---
.../apache/commons/compress/archivers/sevenz/Compress679Test.java | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/test/java/org/apache/commons/compress/archivers/sevenz/Compress679Test.java b/src/test/java/org/apache/commons/compress/archivers/sevenz/Compress679Test.java
index 4caf1c23d..e8bd9607c 100644
--- a/src/test/java/org/apache/commons/compress/archivers/sevenz/Compress679Test.java
+++ b/src/test/java/org/apache/commons/compress/archivers/sevenz/Compress679Test.java
@@ -17,7 +17,7 @@
package org.apache.commons.compress.archivers.sevenz;
-import static org.junit.Assert.assertTrue;
+import static org.junit.jupiter.api.Assertions.assertTrue;
import java.io.InputStream;
import java.nio.file.Files;
@@ -34,8 +34,8 @@ public class Compress679Test {
@Test
@Disabled("Temp")
- public static void testCompress679() {
- final Path origin = Paths.get("file.7z");
+ public void testCompress679() {
+ final Path origin = Paths.get("src/test/resources/org/apache/commons/compress/COMPRESS-679/file.7z");
assertTrue(Files.exists(origin));
final List<Exception> list = new CopyOnWriteArrayList<>();
final Runnable runnable = () -> {
@@ -57,6 +57,6 @@ public class Compress679Test {
}
};
IntStream.range(0, 30).forEach(i -> new Thread(runnable).start());
- assertTrue(list.isEmpty());
+ assertTrue(list.isEmpty(), list::toString);
}
}