From a42e1b10073b77337c499323320bf683fdca8aad Mon Sep 17 00:00:00 2001 From: Eike Stepper Date: Fri, 20 Sep 2013 18:39:13 +0200 Subject: Use createUniquePackage() in tests that need dynamic packages --- .../src/org/eclipse/emf/cdo/tests/db/DBStoreTest.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'plugins/org.eclipse.emf.cdo.tests.db/src/org/eclipse/emf/cdo/tests/db/DBStoreTest.java') 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()); -- cgit v1.2.3