Use AssertJ's fail, not JUnit's

This commit also updates Checkstyle to prevent use of JUnit's
assertions from being reintroduced.

See gh-37655
This commit is contained in:
Johnny Lim
2023-10-03 14:50:51 +09:00
committed by Andy Wilkinson
parent ed4ab667a1
commit c9932bb73a
11 changed files with 23 additions and 23 deletions

View File

@@ -32,7 +32,7 @@
</module>
<module name="com.puppycrawl.tools.checkstyle.checks.regexp.RegexpSinglelineJavaCheck">
<property name="maximum" value="0"/>
<property name="format" value="org\.junit\.Assert\.assert" />
<property name="format" value="org\.junit\.Assert|org\.junit\.jupiter\.api\.Assertions" />
<property name="message"
value="Please use AssertJ imports." />
<property name="ignoreComments" value="true" />