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:04:12 UTC

[commons-rdf] 02/02: [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-rdf.git

commit 4afd81217449ce3da522294b2ee24ec3de7e9cba
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Fri Jun 23 15:48:24 2023 -0400

    [test] Throw a specialized RuntimeException instead of
    RuntimeException
---
 .../src/test/java/org/apache/commons/rdf/api/AbstractRDFTest.java       | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/commons-rdf-api/src/test/java/org/apache/commons/rdf/api/AbstractRDFTest.java b/commons-rdf-api/src/test/java/org/apache/commons/rdf/api/AbstractRDFTest.java
index e358a1d0..5c5e233d 100644
--- a/commons-rdf-api/src/test/java/org/apache/commons/rdf/api/AbstractRDFTest.java
+++ b/commons-rdf-api/src/test/java/org/apache/commons/rdf/api/AbstractRDFTest.java
@@ -274,7 +274,7 @@ public abstract class AbstractRDFTest {
             }
             @Override
             public boolean equals(final Object obj) {
-                throw new RuntimeException("Wrong way comparison of literal");
+                throw new UnsupportedOperationException("Wrong way comparison of literal");
             }
         };