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:
committed by
Andy Wilkinson
parent
ed4ab667a1
commit
c9932bb73a
@@ -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" />
|
||||
|
||||
Reference in New Issue
Block a user