Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2011-02-19 09:08:04 +0000
committerEike Stepper2011-02-19 09:08:04 +0000
commit6e99cdd14e293af3c5877f195063b781faa2141e (patch)
treed07792d8bfc9f60a20c2db63a2034589afc4f4f0 /plugins/org.eclipse.emf.cdo.tests.mongodb
parent4fe854e3bbe501097a32fa96ca1d735c07c6401a (diff)
downloadcdo-6e99cdd14e293af3c5877f195063b781faa2141e.tar.gz
cdo-6e99cdd14e293af3c5877f195063b781faa2141e.tar.xz
cdo-6e99cdd14e293af3c5877f195063b781faa2141e.zip
[337152] [Mongo] Create a MongoDBStore
https://bugs.eclipse.org/bugs/show_bug.cgi?id=337152
Diffstat (limited to 'plugins/org.eclipse.emf.cdo.tests.mongodb')
-rw-r--r--plugins/org.eclipse.emf.cdo.tests.mongodb/src/org/eclipse/emf/cdo/tests/mongodb/InitialTestMongoDB.java10
1 files changed, 6 insertions, 4 deletions
diff --git a/plugins/org.eclipse.emf.cdo.tests.mongodb/src/org/eclipse/emf/cdo/tests/mongodb/InitialTestMongoDB.java b/plugins/org.eclipse.emf.cdo.tests.mongodb/src/org/eclipse/emf/cdo/tests/mongodb/InitialTestMongoDB.java
index 5ae1df424c..f43493b2b9 100644
--- a/plugins/org.eclipse.emf.cdo.tests.mongodb/src/org/eclipse/emf/cdo/tests/mongodb/InitialTestMongoDB.java
+++ b/plugins/org.eclipse.emf.cdo.tests.mongodb/src/org/eclipse/emf/cdo/tests/mongodb/InitialTestMongoDB.java
@@ -14,7 +14,7 @@ import org.eclipse.emf.cdo.CDOState;
import org.eclipse.emf.cdo.eresource.CDOResource;
import org.eclipse.emf.cdo.server.internal.mongodb.MongoDBStore;
import org.eclipse.emf.cdo.session.CDOSession;
-import org.eclipse.emf.cdo.tests.AbstractCDOTest;
+import org.eclipse.emf.cdo.tests.InitialTest;
import org.eclipse.emf.cdo.tests.config.IScenario;
import org.eclipse.emf.cdo.tests.config.impl.ContainerConfig;
import org.eclipse.emf.cdo.tests.config.impl.ModelConfig;
@@ -38,9 +38,9 @@ import java.io.PrintStream;
/**
* @author Eike Stepper
*/
-public class InitialTestMongoDB extends AbstractCDOTest
+public class InitialTestMongoDB extends InitialTest
{
- public void testGetContents() throws Exception
+ public void testGetContentsClearedCache() throws Exception
{
{
msg("Opening session");
@@ -86,7 +86,7 @@ public class InitialTestMongoDB extends AbstractCDOTest
assertEquals("Stepper", name);
}
- public void _testGetResource() throws Exception
+ public void testGetResourceClearedCache() throws Exception
{
Supplier supplier = getModel1Factory().createSupplier();
supplier.setName("Stepper");
@@ -97,6 +97,8 @@ public class InitialTestMongoDB extends AbstractCDOTest
resource.getContents().add(supplier);
transaction.commit();
+ clearCache(getRepository().getRevisionManager());
+
// query(new BasicDBObject(Commits.REVISIONS, new BasicDBObject("$elemMatch", new BasicDBObject(
// Commits.REVISIONS_RESOURCE, 1))));
transaction = session.openTransaction();

Back to the top