Skip to content

Commit 08a8afc

Browse files
authored
IGNITE-28317: Add sanity check to forbid internal Mockito API usage (#12918)
1 parent 4cb61ce commit 08a8afc

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

checkstyle/checkstyle.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,12 @@
3232
<!-- Misc Checks. See: http://checkstyle.sourceforge.net/config_misc.html -->
3333
<module name="NewlineAtEndOfFile"/>
3434

35+
<module name="RegexpSingleline">
36+
<property name="format" value="org\.mockito\.internal\."/>
37+
<property name="message"
38+
value="Usage of org.mockito.internal.* is forbidden. Use public Mockito API or standard Java utilities instead."/>
39+
</module>
40+
3541
<module name="TreeWalker">
3642
<!-- Coding Checks. See: https://checkstyle.sourceforge.io/config_coding.html -->
3743
<module name="SimplifyBooleanExpression"/>

0 commit comments

Comments
 (0)