Consistent Use of BDDMockito

Mixture of plain and BDD Mockito, sometimes in the same class.

Enforce with checkstyle.
This commit is contained in:
Gary Russell
2020-07-21 17:22:46 -04:00
committed by Artem Bilan
parent c40b2b53bc
commit 73fdff5a3f
22 changed files with 474 additions and 477 deletions

View File

@@ -165,6 +165,11 @@
<property name="illegalPattern" value="true"/>
<property name="message" value="System.out or .err"/>
</module>
<module name="Regexp">
<property name="format" value="import.*Mockito\.(doAnswer|when|doThrow|doReturn|doCallRealMethod|doNothing);"/>
<property name="illegalPattern" value="true"/>
<property name="message" value="Please use BDDMockito"/>
</module>
<!-- Whitespace -->
<module name="GenericWhitespace"/>
<module name="MethodParamPad"/>