You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by aa...@apache.org on 2026/09/13 14:01:12 UTC
(cayenne) branch master updated: cleanup
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 4e0bbee51 cleanup
4e0bbee51 is described below
commit 4e0bbee51da3534fa04c71d5622ec34490258014
Author: Andrus Adamchik <an...@objectstyle.com>
AuthorDate: Sun Sep 13 10:01:06 2026 -0400
cleanup
---
.../java/org/apache/cayenne/exp/property/EntityPropertyIdIT.java | 6 +++---
.../src/test/java/org/apache/cayenne/query/ObjectSelect_ByIdIT.java | 6 +++---
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/cayenne/src/test/java/org/apache/cayenne/exp/property/EntityPropertyIdIT.java b/cayenne/src/test/java/org/apache/cayenne/exp/property/EntityPropertyIdIT.java
index 0b3d15be7..ca0e27fcd 100644
--- a/cayenne/src/test/java/org/apache/cayenne/exp/property/EntityPropertyIdIT.java
+++ b/cayenne/src/test/java/org/apache/cayenne/exp/property/EntityPropertyIdIT.java
@@ -89,7 +89,7 @@ public class EntityPropertyIdIT {
List<CompoundPkTestEntity> list = ObjectSelect.query(CompoundPkTestEntity.class)
.where(CompoundPkTestEntity.SELF.neqIdMap(PK_1)).select(env.context());
assertEquals(1, list.size());
- assertEquals("CCC", list.get(0).getName());
+ assertEquals("CCC", list.getFirst().getName());
}
@Test
@@ -131,7 +131,7 @@ public class EntityPropertyIdIT {
.where(CompoundFkTestEntity.TO_COMPOUND_PK.idMapsIn(PK_1, PK_2))
.orderBy(CompoundFkTestEntity.NAME.asc()).select(env.context());
assertEquals(2, list.size());
- assertEquals("FK1", list.get(0).getName());
+ assertEquals("FK1", list.getFirst().getName());
}
@Test
@@ -140,7 +140,7 @@ public class EntityPropertyIdIT {
List<CompoundFkTestEntity> list = ObjectSelect.query(CompoundFkTestEntity.class)
.where(CompoundFkTestEntity.TO_COMPOUND_PK.objectIdsIn(id1)).select(env.context());
assertEquals(1, list.size());
- assertEquals("FK1", list.get(0).getName());
+ assertEquals("FK1", list.getFirst().getName());
}
// --- edge cases ---
diff --git a/cayenne/src/test/java/org/apache/cayenne/query/ObjectSelect_ByIdIT.java b/cayenne/src/test/java/org/apache/cayenne/query/ObjectSelect_ByIdIT.java
index 7c5cebcbf..68f3dbb13 100644
--- a/cayenne/src/test/java/org/apache/cayenne/query/ObjectSelect_ByIdIT.java
+++ b/cayenne/src/test/java/org/apache/cayenne/query/ObjectSelect_ByIdIT.java
@@ -151,7 +151,7 @@ public class ObjectSelect_ByIdIT {
.where(Artist.SELF.idMapsIn(id2, id3))
.orderBy(Artist.ARTIST_NAME.asc()).select(env.context());
assertEquals(2, artists.size());
- assertEquals("artist2", artists.get(0).getArtistName());
+ assertEquals("artist2", artists.getFirst().getArtistName());
}
@Test
@@ -197,7 +197,7 @@ public class ObjectSelect_ByIdIT {
.where(Artist.SELF.objectIdsIn(id2, id3))
.orderBy(Artist.ARTIST_NAME.asc()).select(env.context());
assertEquals(2, artists.size());
- assertEquals("artist2", artists.get(0).getArtistName());
+ assertEquals("artist2", artists.getFirst().getArtistName());
}
@Test
@@ -457,7 +457,7 @@ public class ObjectSelect_ByIdIT {
.byIds(singletonMap(Artist.ARTIST_ID_PK_COLUMN, 2), singletonMap(Artist.ARTIST_ID_PK_COLUMN, 3))
.orderBy(Artist.ARTIST_NAME.asc()).select(env.context());
assertEquals(2, artists.size());
- assertEquals("artist2", artists.get(0).getArtistName());
+ assertEquals("artist2", artists.getFirst().getArtistName());
}
@Test