Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2013-09-20 16:39:13 +0000
committerEike Stepper2013-09-20 16:39:13 +0000
commita42e1b10073b77337c499323320bf683fdca8aad (patch)
treef3b720a237997ed6e685baa9364d579d1bab89e3 /plugins/org.eclipse.emf.cdo.tests.db/src/org/eclipse/emf/cdo/tests/db/DBStoreTest.java
parent4c8b4bb1696df763e64923ab155162496ad47298 (diff)
downloadcdo-a42e1b10073b77337c499323320bf683fdca8aad.tar.gz
cdo-a42e1b10073b77337c499323320bf683fdca8aad.tar.xz
cdo-a42e1b10073b77337c499323320bf683fdca8aad.zip
Use createUniquePackage() in tests that need dynamic packages
Diffstat (limited to 'plugins/org.eclipse.emf.cdo.tests.db/src/org/eclipse/emf/cdo/tests/db/DBStoreTest.java')
-rw-r--r--plugins/org.eclipse.emf.cdo.tests.db/src/org/eclipse/emf/cdo/tests/db/DBStoreTest.java9
1 files changed, 6 insertions, 3 deletions
diff --git a/plugins/org.eclipse.emf.cdo.tests.db/src/org/eclipse/emf/cdo/tests/db/DBStoreTest.java b/plugins/org.eclipse.emf.cdo.tests.db/src/org/eclipse/emf/cdo/tests/db/DBStoreTest.java
index 66a7dcc19c..869fb82eb6 100644
--- a/plugins/org.eclipse.emf.cdo.tests.db/src/org/eclipse/emf/cdo/tests/db/DBStoreTest.java
+++ b/plugins/org.eclipse.emf.cdo.tests.db/src/org/eclipse/emf/cdo/tests/db/DBStoreTest.java
@@ -123,7 +123,8 @@ public class DBStoreTest extends AbstractCDOTest
public void testStoreCustom() throws CommitException
{
- EPackage pkg = EMFUtil.createEPackage("customTest", "ct", "http://tests.cdo.emf.eclipse.org/customTest");
+ String uniqueName = getClass().getSimpleName() + "_" + getName();
+ EPackage pkg = EMFUtil.createEPackage(uniqueName, "anyprefix", "http://" + uniqueName);
EDataType dt = EcoreFactory.eINSTANCE.createEDataType();
dt.setName("custom");
@@ -282,7 +283,8 @@ public class DBStoreTest extends AbstractCDOTest
public void testUnderscoreFeature() throws Exception
{
- EPackage pkg = EMFUtil.createEPackage("underscoreTest", "uct", "http://cdo.eclipse.org/tests/underscoreTest.ecore");
+ String uniqueName = getClass().getSimpleName() + "_" + getName();
+ EPackage pkg = EMFUtil.createEPackage(uniqueName, "anyprefix", "http://" + uniqueName);
EClass cls = EMFUtil.createEClass(pkg, "foo", false, false);
EAttribute att = EMFUtil.createEAttribute(cls, "_bar", EcorePackage.eINSTANCE.getEString());
@@ -304,7 +306,8 @@ public class DBStoreTest extends AbstractCDOTest
public void testUnderscoreClass() throws Exception
{
- EPackage pkg = EMFUtil.createEPackage("underscoreTest", "uct", "http://cdo.eclipse.org/tests/underscoreTest.ecore");
+ String uniqueName = getClass().getSimpleName() + "_" + getName();
+ EPackage pkg = EMFUtil.createEPackage(uniqueName, "anyprefix", "http://" + uniqueName);
EClass cls = EMFUtil.createEClass(pkg, "foo", false, false);
EAttribute att = EMFUtil.createEAttribute(cls, "_bar", EcorePackage.eINSTANCE.getEString());

Back to the top