You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by nt...@apache.org on 2023/01/17 10:10:06 UTC

[cayenne] branch STABLE-4.2 updated: Fix OpIdFactory test

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 78868d820 Fix OpIdFactory test
78868d820 is described below

commit 78868d820fd30cf088846e6f89619e91a4206fad
Author: Nikita Timofeev <st...@gmail.com>
AuthorDate: Tue Jan 17 13:10:00 2023 +0300

    Fix OpIdFactory test
---
 .../cayenne/access/flush/operation/OpIdFactoryTest.java      | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/cayenne-server/src/test/java/org/apache/cayenne/access/flush/operation/OpIdFactoryTest.java b/cayenne-server/src/test/java/org/apache/cayenne/access/flush/operation/OpIdFactoryTest.java
index ec58afc63..318d6db7d 100644
--- a/cayenne-server/src/test/java/org/apache/cayenne/access/flush/operation/OpIdFactoryTest.java
+++ b/cayenne-server/src/test/java/org/apache/cayenne/access/flush/operation/OpIdFactoryTest.java
@@ -28,22 +28,22 @@ public class OpIdFactoryTest {
 
     @Test
     public void testEqualsAndHashCode() {
-        ObjectId idSource1 = ObjectId.of("test");
+        ObjectId idSource1 = ObjectId.of("db:test");
         idSource1.getReplacementIdMap().put("id", 1);
 
-        ObjectId idSource2 = ObjectId.of("test");
+        ObjectId idSource2 = ObjectId.of("db:test");
         idSource2.getReplacementIdMap().put("id", 1);
 
-        ObjectId idSource3 = ObjectId.of("test");
+        ObjectId idSource3 = ObjectId.of("db:test");
         idSource3.getReplacementIdMap().put("id2", 1);
 
-        ObjectId idSource4 = ObjectId.of("test2");
+        ObjectId idSource4 = ObjectId.of("db:test2");
         idSource4.getReplacementIdMap().put("id", 1);
 
-        ObjectId idSource5 = ObjectId.of("test2");
+        ObjectId idSource5 = ObjectId.of("db:test2");
         idSource5.getReplacementIdMap().put("id", 1);
 
-        ObjectId idSource6 = ObjectId.of("test", "id", 1);
+        ObjectId idSource6 = ObjectId.of("db:test", "id", 1);
 
         ObjectId id1 = OpIdFactory.idForOperation(idSource1);
         ObjectId id2 = OpIdFactory.idForOperation(idSource2);