Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2008-07-02 07:57:23 -0400
committerEike Stepper2008-07-02 07:57:23 -0400
commit5ecdebb08f25533e1317d49c6fb77fc1cdfe77bf (patch)
tree9a196885c866bc68e17741ae4b2afbe9ac74e75d
parent1d50488db52baa2e1c532bbdc3b4e636b269fe18 (diff)
downloadcdo-5ecdebb08f25533e1317d49c6fb77fc1cdfe77bf.tar.gz
cdo-5ecdebb08f25533e1317d49c6fb77fc1cdfe77bf.tar.xz
cdo-5ecdebb08f25533e1317d49c6fb77fc1cdfe77bf.zip
[239036] [Hibernate] Problem with CDOIDHibernateImpl.equals()
https://bugs.eclipse.org/bugs/show_bug.cgi?id=239036
-rw-r--r--plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/ViewTest.java9
1 files changed, 4 insertions, 5 deletions
diff --git a/plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/ViewTest.java b/plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/ViewTest.java
index 61838ef228..78d4d7bc6f 100644
--- a/plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/ViewTest.java
+++ b/plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/ViewTest.java
@@ -13,7 +13,6 @@ package org.eclipse.emf.cdo.tests;
import org.eclipse.emf.cdo.CDOSession;
import org.eclipse.emf.cdo.CDOTransaction;
import org.eclipse.emf.cdo.CDOView;
-import org.eclipse.emf.cdo.common.id.CDOID;
import org.eclipse.emf.cdo.common.model.resource.CDOContentsFeature;
import org.eclipse.emf.cdo.common.model.resource.CDOResourcePackage;
import org.eclipse.emf.cdo.common.revision.CDOReferenceProxy;
@@ -51,20 +50,20 @@ public class ViewTest extends AbstractCDOTest
public void testGetOrCreateResource() throws Exception
{
- CDOID id;
+ String id;
{
CDOSession session = openModel1Session();
CDOTransaction transaction = session.openTransaction();
CDOResource resource = transaction.createResource("/test1");
transaction.commit();
- id = resource.cdoID();
+ id = resource.cdoID().toString();
session.close();
}
CDOSession session = openModel1Session();
CDOTransaction transaction = session.openTransaction();
- assertEquals(id, transaction.getOrCreateResource("/test1").cdoID());
- assertNotSame(id, transaction.getOrCreateResource("/test2").cdoID());
+ assertEquals(id, transaction.getOrCreateResource("/test1").cdoID().toString());
+ assertNotSame(id, transaction.getOrCreateResource("/test2").cdoID().toString());
session.close();
}

Back to the top