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 2023/06/23 20:27:21 UTC

[commons-vfs] 14/15: [test] Throw a specialized RuntimeException instead of RuntimeException

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-vfs.git

commit 1562bc942f85a57c85e2420dd494715e1f5fddaa
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Fri Jun 23 16:26:24 2023 -0400

    [test] Throw a specialized RuntimeException instead of
    RuntimeException
---
 commons-vfs2/src/test/java/org/apache/commons/vfs2/RunTest.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/commons-vfs2/src/test/java/org/apache/commons/vfs2/RunTest.java b/commons-vfs2/src/test/java/org/apache/commons/vfs2/RunTest.java
index 2fab5163..bfd6281f 100644
--- a/commons-vfs2/src/test/java/org/apache/commons/vfs2/RunTest.java
+++ b/commons-vfs2/src/test/java/org/apache/commons/vfs2/RunTest.java
@@ -70,13 +70,13 @@ public class RunTest {
         final TestResult result = new TestResult() {
             @Override
             public synchronized void addError(final Test test, final Throwable throwable) {
-                // throw new RuntimeException(throwable.getMessage());
+                // throw new IllegalStateException(throwable.getMessage());
                 throwable.printStackTrace();
             }
 
             @Override
             public synchronized void addFailure(final Test test, final AssertionFailedError assertionFailedError) {
-                // throw new RuntimeException(assertionFailedError.getMessage());
+                // throw new IllegalStateException(assertionFailedError.getMessage());
                 assertionFailedError.printStackTrace();
             }