Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2011-12-19 10:32:08 -0500
committerEike Stepper2011-12-19 10:32:08 -0500
commit68887875f5ebfff23eb2631d7831fa7ed7995907 (patch)
tree43ce6c35157c9fa5890ddbd2250ffe67999f89fd
parenta63c7fd12c60c0ab962ba4c046244aedc99ec118 (diff)
downloadcdo-68887875f5ebfff23eb2631d7831fa7ed7995907.tar.gz
cdo-68887875f5ebfff23eb2631d7831fa7ed7995907.tar.xz
cdo-68887875f5ebfff23eb2631d7831fa7ed7995907.zip
Enabled Bugzilla_337587_Test
-rw-r--r--plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/bugzilla/Bugzilla_337587_Test.java23
1 files changed, 14 insertions, 9 deletions
diff --git a/plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/bugzilla/Bugzilla_337587_Test.java b/plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/bugzilla/Bugzilla_337587_Test.java
index 367339e0f6..2784e8aaeb 100644
--- a/plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/bugzilla/Bugzilla_337587_Test.java
+++ b/plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/bugzilla/Bugzilla_337587_Test.java
@@ -10,8 +10,7 @@
*/
package org.eclipse.emf.cdo.tests.bugzilla;
-import org.eclipse.emf.cdo.common.revision.delta.CDOListFeatureDelta;
-import org.eclipse.emf.cdo.common.revision.delta.CDORevisionDelta;
+import org.eclipse.emf.cdo.CDOObject;
import org.eclipse.emf.cdo.eresource.CDOResource;
import org.eclipse.emf.cdo.session.CDOSession;
import org.eclipse.emf.cdo.spi.common.revision.InternalCDORevision;
@@ -30,10 +29,7 @@ import org.eclipse.emf.spi.cdo.InternalCDOTransaction;
*/
public class Bugzilla_337587_Test extends AbstractCDOTest
{
- /**
- * TODO Disabled because bug 337587 has been reopened!
- */
- public void _testRevisionCompare() throws CommitException
+ public void testRevisionCompare() throws CommitException
{
{
CDOSession session = openSession();
@@ -71,9 +67,18 @@ public class Bugzilla_337587_Test extends AbstractCDOTest
resource.getContents().add(salesOrder);
salesOrders.set(5, salesOrder);
- InternalCDORevision cleanRevision = ((InternalCDOTransaction)transaction).getCleanRevisions().get(resource);
- CDORevisionDelta diff = resource.cdoRevision().compare(cleanRevision);
- assertEquals(1, ((CDOListFeatureDelta)diff.getFeatureDeltas().get(0)).getListChanges().size());
+ CDOObject cdoResource = CDOUtil.getCDOObject(resource);
+ InternalCDORevision cleanRevision = ((InternalCDOTransaction)transaction).getCleanRevisions().get(cdoResource);
+
+ try
+ {
+ cdoResource.cdoRevision().compare(cleanRevision);
+ fail("Expected IllegalStateException during comparing EList with CDOProxyElement");
+ }
+ catch (IllegalStateException expected)
+ {
+ // expected exception
+ }
transaction.commit();
}

Back to the top