[prev in list] [next in list] [prev in thread] [next in thread]
List: jakarta-commons-dev
Subject: [commons-compress] branch master updated: Use JUnit fail() instead of throwing an error in tests
From: ggregory () apache ! org
Date: 2023-08-31 13:17:20
Message-ID: 169348784015.3578458.11142480047679167773 () gitbox2-he-fi ! apache ! org
[Download RAW message or body]
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 2913771b Use JUnit fail() instead of throwing an error in tests
2913771b is described below
commit 2913771b6a3fd8a0111b2ff315569abaddeccef9
Author: Gary Gregory <garydgregory@gmail.com>
AuthorDate: Thu Aug 31 09:17:15 2023 -0400
Use JUnit fail() instead of throwing an error in tests
---
src/test/java/org/apache/commons/compress/AbstractTestCase.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/test/java/org/apache/commons/compress/AbstractTestCase.java \
b/src/test/java/org/apache/commons/compress/AbstractTestCase.java index \
07a65ffe..80624ea0 100644
--- a/src/test/java/org/apache/commons/compress/AbstractTestCase.java
+++ b/src/test/java/org/apache/commons/compress/AbstractTestCase.java
@@ -91,7 +91,7 @@ public abstract class AbstractTestCase {
}
tryHardToDelete(f); // safer to delete and check
if (f.exists()) {
- throw new Error("Failed to delete " + f.getPath());
+ fail("Failed to delete " + f.getPath());
}
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic