diff options
author | Caspar De Groot | 2011-02-23 02:24:37 +0000 |
---|---|---|
committer | Caspar De Groot | 2011-02-23 02:24:37 +0000 |
commit | baad70b607cd76bcbbd5dcb884eb697d6e37042f (patch) | |
tree | 5c7485c0918dadce8caf0e804c32712436c84c50 /plugins/org.eclipse.emf.cdo.tests.db/src/org/eclipse/emf/cdo/tests/db/DBStoreTest.java | |
parent | 8a4ddd6e9ad7206180607c0a3f18e9ca2fc0bbdb (diff) | |
download | cdo-baad70b607cd76bcbbd5dcb884eb697d6e37042f.tar.gz cdo-baad70b607cd76bcbbd5dcb884eb697d6e37042f.tar.xz cdo-baad70b607cd76bcbbd5dcb884eb697d6e37042f.zip |
[Bug 337180] Use a unique resource name per test method
https://bugs.eclipse.org/bugs/show_bug.cgi?id=337180
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.java | 16 |
1 files changed, 8 insertions, 8 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 6d291ae86c..5bfd025820 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 @@ -100,7 +100,7 @@ public class DBStoreTest extends AbstractCDOTest { CDOSession session = openSession(); CDOTransaction transaction = session.openTransaction(); - CDOResource resource = transaction.getOrCreateResource("/test"); + CDOResource resource = transaction.getOrCreateResource(getResourcePath("/test")); PurchaseOrder o = Model1Factory.eINSTANCE.createPurchaseOrder(); o.setDate(new GregorianCalendar(2008, 11, 24, 12, 34, 56).getTime()); @@ -114,7 +114,7 @@ public class DBStoreTest extends AbstractCDOTest session = openSession(); CDOView view = session.openView(); - resource = view.getResource("/test"); + resource = view.getResource(getResourcePath("/test")); assertEquals(1, resource.getContents().size()); o = (PurchaseOrder)resource.getContents().get(0); @@ -155,7 +155,7 @@ public class DBStoreTest extends AbstractCDOTest CDOSession session = openSession(); session.getPackageRegistry().putEPackage(pkg); CDOTransaction transaction = session.openTransaction(); - CDOResource resource = transaction.createResource("/test"); + CDOResource resource = transaction.createResource(getResourcePath("/test")); resource.getContents().add(obj1); resource.getContents().add(obj2); transaction.commit(); @@ -169,7 +169,7 @@ public class DBStoreTest extends AbstractCDOTest CDOSession session = openSession(); session.getPackageRegistry().putEPackage(pkg); CDOView view = session.openView(); - CDOResource resource = view.getResource("/test"); + CDOResource resource = view.getResource(getResourcePath("/test")); assertEquals(2, resource.getContents().size()); @@ -249,7 +249,7 @@ public class DBStoreTest extends AbstractCDOTest { CDOSession session = openSession(); CDOTransaction transaction = session.openTransaction(); - CDOResource resource = transaction.getOrCreateResource("/test"); + CDOResource resource = transaction.getOrCreateResource(getResourcePath("/test")); Company e = Model1Factory.eINSTANCE.createCompany(); e.setName(s); @@ -273,7 +273,7 @@ public class DBStoreTest extends AbstractCDOTest session = openSession(); CDOView view = session.openView(); - resource = view.getResource("/test"); + resource = view.getResource(getResourcePath("/test")); assertEquals(1, resource.getContents().size()); e = (Company)resource.getContents().get(0); @@ -293,7 +293,7 @@ public class DBStoreTest extends AbstractCDOTest CDOSession session = openSession(); CDOTransaction transaction = session.openTransaction(); - CDOResource resource = transaction.createResource("/test"); + CDOResource resource = transaction.createResource(getResourcePath("/test")); EObject foo = EcoreUtil.create(cls); foo.eSet(att, "foobar"); @@ -315,7 +315,7 @@ public class DBStoreTest extends AbstractCDOTest CDOSession session = openSession(); CDOTransaction transaction = session.openTransaction(); - CDOResource resource = transaction.createResource("/test"); + CDOResource resource = transaction.createResource(getResourcePath("/test")); EObject foo = EcoreUtil.create(cls); foo.eSet(att, "foobar"); |