summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2008-05-24 04:47:12 (EDT)
committerEike Stepper2008-05-24 04:47:12 (EDT)
commit08918c89d3ed23e2c45362617268162e4dc3002b (patch)
treec53ed4ca52bbac059f5b3f14b0bafd402ac7d40a
parent3c4108a5b57541e826dfc6a6c57323067449c545 (diff)
downloadcdo-08918c89d3ed23e2c45362617268162e4dc3002b.zip
cdo-08918c89d3ed23e2c45362617268162e4dc3002b.tar.gz
cdo-08918c89d3ed23e2c45362617268162e4dc3002b.tar.bz2
added versions to deps
-rw-r--r--plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/PackageRegistryTest.java13
1 files changed, 12 insertions, 1 deletions
diff --git a/plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/PackageRegistryTest.java b/plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/PackageRegistryTest.java
index 09ade27..53e3fa2 100644
--- a/plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/PackageRegistryTest.java
+++ b/plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/PackageRegistryTest.java
@@ -133,7 +133,7 @@ public class PackageRegistryTest extends AbstractCDOTest
public void testCommitNestedPackages() throws Exception
{
CDOSession session = openSession();
- assertEquals(5, session.getPackageRegistry().size());
+ assertEquals(0, session.getPackageRegistry().size());
try
{
@@ -144,6 +144,17 @@ public class PackageRegistryTest extends AbstractCDOTest
{
}
+ session.close();
+ }
+
+ public void testCommitTopLevelPackages() throws Exception
+ {
+ CDOSession session = openSession();
+ assertEquals(0, session.getPackageRegistry().size());
+
+ session.getPackageRegistry().putEPackage(Model3Package.eINSTANCE);
+ assertEquals(2, session.getPackageRegistry().size());
+
CDOTransaction transaction = session.openTransaction();
CDOResource res = transaction.createResource("/res");