Skip to content

Commit 20bcdca

Browse files
committed
Fix BDD import restrictions
Closes gh-220
1 parent f4661d9 commit 20bcdca

File tree

1 file changed

+2
-2
lines changed
  • spring-javaformat/spring-javaformat-checkstyle/src/main/resources/io/spring/javaformat/checkstyle

1 file changed

+2
-2
lines changed

spring-javaformat/spring-javaformat-checkstyle/src/main/resources/io/spring/javaformat/checkstyle/spring-checkstyle.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,9 @@
125125
</module>
126126
<module name="com.puppycrawl.tools.checkstyle.checks.regexp.RegexpSinglelineJavaCheck">
127127
<property name="maximum" value="0"/>
128-
<property name="format" value="org\.mockito\.Mockito\.(when|doThrow|doAnswer)" />
128+
<property name="format" value="org\.mockito\.(Mockito|BDDMockito)\.(when|doThrow|doAnswer)" />
129129
<property name="message"
130-
value="Please use BDDMockito imports." />
130+
value="Please use BDD-style (given, when, then) using BDDMockito imports." />
131131
<property name="ignoreComments" value="true" />
132132
</module>
133133
<module name="com.puppycrawl.tools.checkstyle.checks.regexp.RegexpSinglelineJavaCheck">

0 commit comments

Comments
 (0)