You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by el...@apache.org on 2024/12/30 21:08:18 UTC
(maven-shared-jar) 01/01: Remove usage of a library we don't explicitly depend on
This is an automated email from the ASF dual-hosted git repository.
elharo pushed a commit to branch AssertionFailedError
in repository https://gitbox.apache.org/repos/asf/maven-shared-jar.git
commit 80075c4bb2d1ce606c6167de0887bb122b3d6a4f
Author: Elliotte Rusty Harold <el...@ibiblio.org>
AuthorDate: Mon Dec 30 16:07:56 2024 -0500
Remove usage of a library we don't explicitly depend on
---
.../org/apache/maven/shared/jar/AbstractJarAnalyzerTestCase.java | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/src/test/java/org/apache/maven/shared/jar/AbstractJarAnalyzerTestCase.java b/src/test/java/org/apache/maven/shared/jar/AbstractJarAnalyzerTestCase.java
index dab2380..bec0e65 100644
--- a/src/test/java/org/apache/maven/shared/jar/AbstractJarAnalyzerTestCase.java
+++ b/src/test/java/org/apache/maven/shared/jar/AbstractJarAnalyzerTestCase.java
@@ -27,9 +27,8 @@ import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
-import org.opentest4j.AssertionFailedError;
-
import static java.nio.charset.StandardCharsets.UTF_8;
+import static org.junit.jupiter.api.Assertions.fail;
/**
* Abstract JarAnalyzer TestCase
@@ -61,7 +60,7 @@ public abstract class AbstractJarAnalyzerTestCase {
for (String failure : failures) {
sb.append("\n - \"").append(failure).append("\"");
}
- throw new AssertionFailedError(sb.toString());
+ fail(sb.toString());
}
}
}