Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/bugzilla/Bugzilla_400236_Test.java14
1 files changed, 4 insertions, 10 deletions
diff --git a/plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/bugzilla/Bugzilla_400236_Test.java b/plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/bugzilla/Bugzilla_400236_Test.java
index 94818b4077..bd6d6d5bf8 100644
--- a/plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/bugzilla/Bugzilla_400236_Test.java
+++ b/plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/bugzilla/Bugzilla_400236_Test.java
@@ -14,8 +14,6 @@ package org.eclipse.emf.cdo.tests.bugzilla;
import org.eclipse.emf.cdo.eresource.CDOResource;
import org.eclipse.emf.cdo.session.CDOSession;
import org.eclipse.emf.cdo.tests.AbstractCDOTest;
-import org.eclipse.emf.cdo.tests.config.IModelConfig;
-import org.eclipse.emf.cdo.tests.config.impl.ConfigTest.Requires;
import org.eclipse.emf.cdo.tests.model6.CanReferenceLegacy;
import org.eclipse.emf.cdo.transaction.CDOTransaction;
@@ -25,26 +23,24 @@ import org.eclipse.emf.ecore.EcoreFactory;
import java.util.Arrays;
/**
+ * Bug 400236.
+ *
* @author Esteban Dugueperoux
*/
-// don't execute in legacy configs because it's a native/legacy interaction problem
-@Requires(IModelConfig.CAPABILITY_NATIVE)
public class Bugzilla_400236_Test extends AbstractCDOTest
{
-
public void testCommit() throws Exception
{
-
CDOSession session = openSession();
CDOTransaction transaction = session.openTransaction();
CDOResource resourceA = transaction.createResource(getResourcePath("test1"));
CDOResource resourceB = transaction.createResource(getResourcePath("test2"));
CanReferenceLegacy ref1 = getModel6Factory().createCanReferenceLegacy();
- EAnnotation annot1 = EcoreFactory.eINSTANCE.createEAnnotation(); // legacy object
+ EAnnotation annot1 = EcoreFactory.eINSTANCE.createEAnnotation(); // Legacy object
annot1.setSource("annot1");
ref1.setSingleContainment(annot1);
- EAnnotation annot2 = EcoreFactory.eINSTANCE.createEAnnotation(); // legacy object
+ EAnnotation annot2 = EcoreFactory.eINSTANCE.createEAnnotation(); // Legacy object
annot2.setSource("annot2");
ref1.getMultipleContainment().add(annot2);
@@ -71,7 +67,6 @@ public class Bugzilla_400236_Test extends AbstractCDOTest
annot3.setSource("annot3");
ref1.getMultipleContainment().add(annot3);
-
ref2.getMultipleReference().add(annot3);
assertSame(annot1, ref2.getSingleReference());
@@ -79,5 +74,4 @@ public class Bugzilla_400236_Test extends AbstractCDOTest
assertEquals(Arrays.asList(annot2, annot3), ref2.getMultipleReference());
assertEquals(ref1.getMultipleContainment(), ref2.getMultipleReference());
}
-
}

Back to the top