Skip to content

Commit

Permalink
Ignore IncompatibleClassChangeError exception in architecture tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
uhafner committed Nov 9, 2024
1 parent 3d6108d commit a83851e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/test/java/edu/hm/hafner/util/ArchitectureRules.java
Original file line number Diff line number Diff line change
Expand Up @@ -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<? super JavaCall<?>> accessIsRestrictedForTests() {
Expand Down

0 comments on commit a83851e

Please sign in to comment.