From a83851e6ee65cc17c9d02df5d5c621f42bf64112 Mon Sep 17 00:00:00 2001 From: Ulli Hafner Date: Sat, 9 Nov 2024 22:54:09 +0100 Subject: [PATCH] Ignore `IncompatibleClassChangeError` exception in architecture tests. --- src/test/java/edu/hm/hafner/util/ArchitectureRules.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/java/edu/hm/hafner/util/ArchitectureRules.java b/src/test/java/edu/hm/hafner/util/ArchitectureRules.java index fb15f466..c470fc1f 100644 --- a/src/test/java/edu/hm/hafner/util/ArchitectureRules.java +++ b/src/test/java/edu/hm/hafner/util/ArchitectureRules.java @@ -126,7 +126,7 @@ public final class ArchitectureRules { .andShould(beProtected()).allowEmptyShould(true); private static ExceptionHasNoContext exceptionHasNoContextAsParameter() { - return new ExceptionHasNoContext(); + return new ExceptionHasNoContext(IncompatibleClassChangeError.class); } private static DescribedPredicate> accessIsRestrictedForTests() {