Skip to content

Commit 524afac

Browse files
committed
Fix test
1 parent b00bd9a commit 524afac

1 file changed

Lines changed: 7 additions & 8 deletions

File tree

cayenne-server/src/test/java/org/apache/cayenne/access/flush/DefaultDataDomainFlushActionTest.java

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -191,14 +191,13 @@ public void dontMergeSameTableNameOnDifferentDataMaps() {
191191
UpdateDbRowOp update2 = new UpdateDbRowOp(mockObject(id4), test2Datamap2, id4);
192192
update2.getValues().addValue(new DbAttribute("attr"), "def", false);
193193
update2.getValues().addValue(new DbAttribute("attr"), "def", false);
194-
List<DbRowOp> ops = List.of(
195-
new InsertDbRowOp(mockObject(id1), test1Datamap1, id1),
196-
new InsertDbRowOp(mockObject(id2), test1Datamap2, id2),
197-
update1,
198-
update2,
199-
new DeleteDbRowOp(mockObject(id5), test3Datamap1, id5),
200-
new DeleteDbRowOp(mockObject(id6), test3Datamap2, id6)
201-
);
194+
List<DbRowOp> ops = new ArrayList<>();
195+
ops.add(new InsertDbRowOp(mockObject(id1), test1Datamap1, id1));
196+
ops.add(new InsertDbRowOp(mockObject(id2), test1Datamap2, id2));
197+
ops.add(update1);
198+
ops.add(update2);
199+
ops.add(new DeleteDbRowOp(mockObject(id5), test3Datamap1, id5));
200+
ops.add(new DeleteDbRowOp(mockObject(id6), test3Datamap2, id6));
202201

203202
DefaultDataDomainFlushAction action = mock(DefaultDataDomainFlushAction.class);
204203
when(action.createQueries((List<DbRowOp>) any(List.class))).thenCallRealMethod();

0 commit comments

Comments
 (0)