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() {