Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 12d4f7a

Browse filesBrowse files
committed
Fix ArchTest to allow assertThrows
1 parent 1087acd commit 12d4f7a
Copy full SHA for 12d4f7a

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

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

Copy file name to clipboardExpand all lines: src/test/java/org/kohsuke/github/ArchTests.java
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.