This is an automated email from the ASF dual-hosted git repository.

zstan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ignite.git


The following commit(s) were added to refs/heads/master by this push:
     new 08a8afc2f2b IGNITE-28317: Add sanity check to forbid internal Mockito 
API usage (#12918)
08a8afc2f2b is described below

commit 08a8afc2f2b01aab2d62f7a03715c51cd7028272
Author: Kirill Anisimov <[email protected]>
AuthorDate: Fri Mar 20 21:37:25 2026 +0700

    IGNITE-28317: Add sanity check to forbid internal Mockito API usage (#12918)
---
 checkstyle/checkstyle.xml | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/checkstyle/checkstyle.xml b/checkstyle/checkstyle.xml
index b64eba3540d..c688bcf1b3e 100644
--- a/checkstyle/checkstyle.xml
+++ b/checkstyle/checkstyle.xml
@@ -32,6 +32,12 @@
     <!-- Misc Checks. See: http://checkstyle.sourceforge.net/config_misc.html 
-->
     <module name="NewlineAtEndOfFile"/>
 
+    <module name="RegexpSingleline">
+        <property name="format" value="org\.mockito\.internal\."/>
+        <property name="message"
+                  value="Usage of org.mockito.internal.* is forbidden. Use 
public Mockito API or standard Java utilities instead."/>
+    </module>
+
     <module name="TreeWalker">
         <!-- Coding Checks. See: 
https://checkstyle.sourceforge.io/config_coding.html -->
         <module name="SimplifyBooleanExpression"/>

Reply via email to