Skip to content

Commit a88d56d

Browse files
izeyewilkinsona
authored andcommitted
Broaden Checkstyle rule for AssertJ assertion enforcement
See gh-392
1 parent fdc8451 commit a88d56d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/checkstyle/checkstyle.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@
137137
</module>
138138
<module name="com.puppycrawl.tools.checkstyle.checks.regexp.RegexpSinglelineJavaCheck">
139139
<property name="maximum" value="0"/>
140-
<property name="format" value="org\.junit\.Assert\.assert" />
140+
<property name="format" value="org\.junit\.Assert|org\.junit\.jupiter\.api\.Assertions" />
141141
<property name="message"
142142
value="Please use AssertJ imports." />
143143
<property name="ignoreComments" value="true" />

0 commit comments

Comments
 (0)