Skip to content

Commit

Permalink
Build: Add checkstyle rule to ban assert usage (#10886)
Browse files Browse the repository at this point in the history
  • Loading branch information
nastra authored Aug 6, 2024
1 parent 38733f8 commit 257b1d7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .baseline/checkstyle/checkstyle.xml
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,9 @@
<property name="format" value="@Test\(.*expected.*\)"/>
<property name="message" value="Prefer using Assertions.assertThatThrownBy(...).isInstanceOf(...) instead."/>
</module>
<module name="IllegalToken">
<property name="tokens" value="LITERAL_ASSERT"/>
</module>
<module name="IllegalImport">
<property name="id" value="BanExpectedExceptionUsage"/>
<property name="illegalClasses" value="org.junit.rules.ExpectedException"/>
Expand Down

0 comments on commit 257b1d7

Please sign in to comment.