Skip to content

Commit 12d4f7a

Browse files
committed
Fix ArchTest to allow assertThrows
1 parent 1087acd commit 12d4f7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/java/org/kohsuke/github/ArchTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ public void testRequireUseOfAssertThat() {
141141
final String reason = "This project uses `assertThat(...)` instead of other `assert*()` methods.";
142142

143143
final DescribedPredicate<HasName> assertMethodOtherThanAssertThat = nameContaining("assert")
144-
.and(DescribedPredicate.not(name("assertThat")).or(DescribedPredicate.not(name("assertThrows"))));
144+
.and(DescribedPredicate.not(name("assertThat")).and(DescribedPredicate.not(name("assertThrows"))));
145145

146146
final ArchRule onlyAssertThatRule = classes()
147147
.should(not(callMethodWhere(target(assertMethodOtherThanAssertThat))))

0 commit comments

Comments
 (0)