summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2008-03-29 10:35:51 (EDT)
committerEike Stepper2008-03-29 10:35:51 (EDT)
commitd6666f6486155c13157ee129acbbd9398c4bad94 (patch)
treec7bc6c4ba7c5548a253c26f3a8b659b273004f29
parentfff4285351a1df07fd89ebc900dde7a6dafbfba0 (diff)
downloadcdo-d6666f6486155c13157ee129acbbd9398c4bad94.zip
cdo-d6666f6486155c13157ee129acbbd9398c4bad94.tar.gz
cdo-d6666f6486155c13157ee129acbbd9398c4bad94.tar.bz2
*** empty log message ***
-rw-r--r--plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/ViewTest.java21
1 files changed, 21 insertions, 0 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 e4e2804..54b8d64 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
@@ -16,6 +16,9 @@ import org.eclipse.emf.cdo.CDOView;
import org.eclipse.emf.cdo.eresource.CDOResource;
import org.eclipse.emf.cdo.protocol.id.CDOID;
+import org.eclipse.emf.ecore.resource.ResourceSet;
+import org.eclipse.emf.ecore.resource.impl.ResourceSetImpl;
+
/**
* @author Eike Stepper
*/
@@ -56,4 +59,22 @@ public class ViewTest extends AbstractCDOTest
assertNotSame(id, transaction.getOrCreateResource("/test2").cdoID());
session.close();
}
+
+ public void testExternalResourceSet() throws Exception
+ {
+ {
+ ResourceSet resourceSet = new ResourceSetImpl();
+ CDOSession session = openModel1Session();
+ CDOTransaction transaction = session.openTransaction(resourceSet);
+ transaction.createResource("/test1");
+ transaction.commit();
+ session.close();
+ }
+
+ CDOSession session = openModel1Session();
+ CDOView view = session.openView();
+ assertEquals(true, view.hasResource("/test1"));
+ assertEquals(false, view.hasResource("/test2"));
+ session.close();
+ }
}