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 00dfb84cf CAY-2868 Regression: DefaultDbRowOpSorter shouldn't sort 
update operations  - fix tests
00dfb84cf is described below

commit 00dfb84cfa6631500f5427b6538292a68493c075
Author: Nikita Timofeev <stari...@gmail.com>
AuthorDate: Fri Aug 16 14:01:31 2024 +0300

    CAY-2868 Regression: DefaultDbRowOpSorter shouldn't sort update operations
     - fix tests
---
 .../java/org/apache/cayenne/access/flush/DefaultDbRowOpSorterTest.java  | 2 ++
 1 file changed, 2 insertions(+)

diff --git 
a/cayenne-server/src/test/java/org/apache/cayenne/access/flush/DefaultDbRowOpSorterTest.java
 
b/cayenne-server/src/test/java/org/apache/cayenne/access/flush/DefaultDbRowOpSorterTest.java
index 8fbb3ddd4..60124a22b 100644
--- 
a/cayenne-server/src/test/java/org/apache/cayenne/access/flush/DefaultDbRowOpSorterTest.java
+++ 
b/cayenne-server/src/test/java/org/apache/cayenne/access/flush/DefaultDbRowOpSorterTest.java
@@ -195,6 +195,8 @@ public class DefaultDbRowOpSorterTest {
         verify(entitySorter, times(3)).getDbEntityComparator();
         verify(entitySorter) // should call entity sorter
                 .sortObjectsForEntity(isNull(), any(List.class), eq(false));
+        verify(entitySorter) // should call entity sorter
+                .isReflexive(any(DbEntity.class));
         verifyNoMoreInteractions(entitySorter);
     }
 

Reply via email to