Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorChristian W. Damus2013-09-05 15:43:45 -0400
committerChristian W. Damus2013-09-05 15:43:45 -0400
commit9e19eac24bae87190cfbf91d42525bb39bff5ead (patch)
treec8137c7298e3232b69ca61971a27112ef10eb934 /tests
parent54a1f4ae74f0bca91c4626216c11eea7806d4265 (diff)
downloadorg.eclipse.papyrus-9e19eac24bae87190cfbf91d42525bb39bff5ead.tar.gz
org.eclipse.papyrus-9e19eac24bae87190cfbf91d42525bb39bff5ead.tar.xz
org.eclipse.papyrus-9e19eac24bae87190cfbf91d42525bb39bff5ead.zip
403915: [CDO] Test failure in Hudson build
https://bugs.eclipse.org/bugs/show_bug.cgi?id=403915 Tweaking the CDOPackageImportSource::CDOContent class to ensure more consistent behaviour with other content providers. More importantly, because the test case doesn't assign a viewer to the ModelRepositoryContentProvider, make sure that the asynchronous DI model query job doesn't NPE on the null viewer reference.
Diffstat (limited to 'tests')
-rw-r--r--tests/junit/extraplugins/cdo/org.eclipse.papyrus.cdo.core.tests/src/org/eclipse/papyrus/cdo/core/tests/AbstractPapyrusCDOTest.java10
1 files changed, 1 insertions, 9 deletions
diff --git a/tests/junit/extraplugins/cdo/org.eclipse.papyrus.cdo.core.tests/src/org/eclipse/papyrus/cdo/core/tests/AbstractPapyrusCDOTest.java b/tests/junit/extraplugins/cdo/org.eclipse.papyrus.cdo.core.tests/src/org/eclipse/papyrus/cdo/core/tests/AbstractPapyrusCDOTest.java
index 632c9bf226d..b4322a658f0 100644
--- a/tests/junit/extraplugins/cdo/org.eclipse.papyrus.cdo.core.tests/src/org/eclipse/papyrus/cdo/core/tests/AbstractPapyrusCDOTest.java
+++ b/tests/junit/extraplugins/cdo/org.eclipse.papyrus.cdo.core.tests/src/org/eclipse/papyrus/cdo/core/tests/AbstractPapyrusCDOTest.java
@@ -17,7 +17,6 @@ import static org.junit.Assert.assertThat;
import java.util.Map;
import java.util.regex.Pattern;
-import org.eclipse.emf.cdo.CDOObject;
import org.eclipse.emf.cdo.common.CDOCommonRepository;
import org.eclipse.emf.cdo.net4j.CDONet4jUtil;
import org.eclipse.emf.cdo.server.CDOServerUtil;
@@ -27,7 +26,6 @@ import org.eclipse.emf.cdo.server.net4j.CDONet4jServerUtil;
import org.eclipse.emf.cdo.session.CDOSession;
import org.eclipse.emf.cdo.spi.server.InternalRepository;
import org.eclipse.emf.cdo.transaction.CDOTransaction;
-import org.eclipse.emf.cdo.util.CDOUtil;
import org.eclipse.emf.cdo.view.CDOView;
import org.eclipse.emf.common.util.URI;
import org.eclipse.emf.ecore.EObject;
@@ -124,7 +122,6 @@ public abstract class AbstractPapyrusCDOTest {
props.put(Props.OVERRIDE_UUID, ""); // use the name as the UUID
props.put(Props.SUPPORTING_AUDITS, "false");
props.put(Props.SUPPORTING_BRANCHES, "false");
- props.put(Props.SUPPORTING_ECORE, "true");
props.put(Props.ID_GENERATION_LOCATION, CDOCommonRepository.IDGenerationLocation.STORE.toString());
}
@@ -234,13 +231,8 @@ public abstract class AbstractPapyrusCDOTest {
}
protected <T extends EObject> T getMasterViewObject(T object) {
- CDOObject cdo = CDOUtil.getCDOObject(object);
-
CDOView view = getInternalPapyrusRepository().getMasterView();
- @SuppressWarnings("unchecked")
- T result = (T)CDOUtil.getEObject(view.getObject(cdo.cdoID()));
-
- return result;
+ return view.getObject(object);
}
public static <T extends Number & Comparable<T>> Matcher<T> lessThan(final T max) {

Back to the top