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

asf-gitbox-commits pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cayenne.git


The following commit(s) were added to refs/heads/master by this push:
     new 096d68ac0 CLAUDE instructions for tests
096d68ac0 is described below

commit 096d68ac0d2754d6848243a0ed26c21b72417eef
Author: Andrus Adamchik <[email protected]>
AuthorDate: Sat May 9 15:12:57 2026 -0400

    CLAUDE instructions for tests
---
 CLAUDE.md | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/CLAUDE.md b/CLAUDE.md
index dbf31ce3e..ffb537a06 100644
--- a/CLAUDE.md
+++ b/CLAUDE.md
@@ -100,7 +100,9 @@ mvn test -Dtest=SomeTest -DcayenneTestConnection=h2
 ### Test Infrastructure
 
 Tests in `cayenne/src/test/` use a shared set of test mapping files and 
database scripts in `src/test/resources/`. The `DBHelper` and `UnitDbAdapter` 
utilities handle database-specific test setup. TestContainers is used for 
non-embedded databases.
-Test naming: `*Test.java` = unit tests (Surefire), `*IT.java` = integration 
tests (Failsafe). Tests use JUnit 4 and Mockito.
+Test naming: `*Test.java` = unit tests (Surefire), `*IT.java` = integration 
tests (Failsafe).
+
+**Test style:** JUnit 5 is the standard for all new tests. JUnit 4-style tests 
are legacy. New test classes and methods must be `public`; method names must 
not use the `test` prefix (e.g., use `someFeature()` not `testSomeFeature()`). 
Mockito is used for mocking for legacy reasons. Should avoid it in newer tests
 
 ## CI Matrix
 

Reply via email to