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

ntimofeev pushed a commit to branch STABLE-4.2
in repository https://gitbox.apache.org/repos/asf/cayenne.git


The following commit(s) were added to refs/heads/STABLE-4.2 by this push:
     new 524afac83 Fix test
524afac83 is described below

commit 524afac83f0cdbefb4e11f6f3095c94c266603be
Author: Nikita Timofeev <[email protected]>
AuthorDate: Wed Sep 24 20:32:10 2025 +0400

    Fix test
---
 .../access/flush/DefaultDataDomainFlushActionTest.java    | 15 +++++++--------
 1 file changed, 7 insertions(+), 8 deletions(-)

diff --git 
a/cayenne-server/src/test/java/org/apache/cayenne/access/flush/DefaultDataDomainFlushActionTest.java
 
b/cayenne-server/src/test/java/org/apache/cayenne/access/flush/DefaultDataDomainFlushActionTest.java
index 4e5ea320a..2317ba95c 100644
--- 
a/cayenne-server/src/test/java/org/apache/cayenne/access/flush/DefaultDataDomainFlushActionTest.java
+++ 
b/cayenne-server/src/test/java/org/apache/cayenne/access/flush/DefaultDataDomainFlushActionTest.java
@@ -191,14 +191,13 @@ public class DefaultDataDomainFlushActionTest {
         UpdateDbRowOp update2 = new UpdateDbRowOp(mockObject(id4), 
test2Datamap2, id4);
         update2.getValues().addValue(new DbAttribute("attr"), "def", false);
         update2.getValues().addValue(new DbAttribute("attr"), "def", false);
-        List<DbRowOp> ops = List.of(
-                new InsertDbRowOp(mockObject(id1), test1Datamap1, id1),
-                new InsertDbRowOp(mockObject(id2), test1Datamap2, id2),
-                update1,
-                update2,
-                new DeleteDbRowOp(mockObject(id5), test3Datamap1, id5),
-                new DeleteDbRowOp(mockObject(id6), test3Datamap2, id6)
-        );
+        List<DbRowOp> ops = new ArrayList<>();
+        ops.add(new InsertDbRowOp(mockObject(id1), test1Datamap1, id1));
+        ops.add(new InsertDbRowOp(mockObject(id2), test1Datamap2, id2));
+        ops.add(update1);
+        ops.add(update2);
+        ops.add(new DeleteDbRowOp(mockObject(id5), test3Datamap1, id5));
+        ops.add(new DeleteDbRowOp(mockObject(id6), test3Datamap2, id6));
 
         DefaultDataDomainFlushAction action = 
mock(DefaultDataDomainFlushAction.class);
         when(action.createQueries((List<DbRowOp>) 
any(List.class))).thenCallRealMethod();

Reply via email to