Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2012-05-01 16:56:27 +0000
committerEike Stepper2012-05-01 16:56:27 +0000
commitde92eec1a9b08fffdb68ae0cf6fb48b764059408 (patch)
treea6959110fe45698a79f399e75a6318bda6d2b195
parent5b576d6563e340f01b169e608f5e0596202a1230 (diff)
downloadcdo-de92eec1a9b08fffdb68ae0cf6fb48b764059408.tar.gz
cdo-de92eec1a9b08fffdb68ae0cf6fb48b764059408.tar.xz
cdo-de92eec1a9b08fffdb68ae0cf6fb48b764059408.zip
[369646] [DB] ClassCastException after setBranch when server cache contains partially loaded collections
https://bugs.eclipse.org/bugs/show_bug.cgi?id=369646
-rw-r--r--plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/bugzilla/Bugzilla_369646_Test.java9
1 files changed, 4 insertions, 5 deletions
diff --git a/plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/bugzilla/Bugzilla_369646_Test.java b/plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/bugzilla/Bugzilla_369646_Test.java
index a16e39c3fd..2db4c85124 100644
--- a/plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/bugzilla/Bugzilla_369646_Test.java
+++ b/plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/bugzilla/Bugzilla_369646_Test.java
@@ -15,6 +15,7 @@ import org.eclipse.emf.cdo.eresource.CDOResource;
import org.eclipse.emf.cdo.session.CDOSession;
import org.eclipse.emf.cdo.tests.AbstractCDOTest;
import org.eclipse.emf.cdo.tests.config.IRepositoryConfig;
+import org.eclipse.emf.cdo.tests.config.impl.ConfigTest.CleanRepositoriesBefore;
import org.eclipse.emf.cdo.tests.model1.Category;
import org.eclipse.emf.cdo.transaction.CDOTransaction;
import org.eclipse.emf.cdo.util.CDOUtil;
@@ -29,13 +30,14 @@ import org.eclipse.net4j.util.io.IOUtil;
*
* @author Eike Stepper
*/
+@CleanRepositoriesBefore
public class Bugzilla_369646_Test extends AbstractCDOTest
{
@Requires(IRepositoryConfig.CAPABILITY_BRANCHING)
public void testSetBranchWithSubBranches() throws Exception
{
- // Note: as of Bugzilla 369646, this fails with DBStore and rangebased-braching mapping strategy
- // the reason is that this strategy uses partially loaded resources internally.
+ // Note: as of bug 369646, this fails with DBStore and range-based branching mapping strategy.
+ // The reason is that this strategy uses partially loaded resources internally.
// Set up a resource with 1 object as content
CDOSession session = openSession();
@@ -64,7 +66,6 @@ public class Bugzilla_369646_Test extends AbstractCDOTest
@Requires(IRepositoryConfig.CAPABILITY_BRANCHING)
public void testSetBranchWithPCL() throws Exception
{
-
{
// Set up a resource with 10 objects as content
CDOSession session = openSession();
@@ -94,7 +95,6 @@ public class Bugzilla_369646_Test extends AbstractCDOTest
// commit
transaction.commit();
- transaction.close();
session.close();
}
@@ -114,5 +114,4 @@ public class Bugzilla_369646_Test extends AbstractCDOTest
view.setBranch(view.getBranch().getBranches()[0]);
IOUtil.OUT().println("Result: " + cat.getCategories());
}
-
}

Back to the top