diff options
author | Eike Stepper | 2012-05-01 17:00:03 +0000 |
---|---|---|
committer | Eike Stepper | 2012-05-01 17:00:03 +0000 |
commit | 2dc48cc9854bdae83437a39708a0c825c526f9b6 (patch) | |
tree | aaf1b02c3463dcbedd55212dc82a34bfa86528a5 | |
parent | de92eec1a9b08fffdb68ae0cf6fb48b764059408 (diff) | |
download | cdo-2dc48cc9854bdae83437a39708a0c825c526f9b6.tar.gz cdo-2dc48cc9854bdae83437a39708a0c825c526f9b6.tar.xz cdo-2dc48cc9854bdae83437a39708a0c825c526f9b6.zip |
Revert "[369646] [DB] ClassCastException after setBranch when server cache contains partially loaded collections https://bugs.eclipse.org/bugs/show_bug.cgi?id=369646"
This reverts commit de92eec1a9b08fffdb68ae0cf6fb48b764059408.
-rw-r--r-- | plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/bugzilla/Bugzilla_369646_Test.java | 9 |
1 files changed, 5 insertions, 4 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 2db4c85124..a16e39c3fd 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,7 +15,6 @@ 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; @@ -30,14 +29,13 @@ 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 bug 369646, this fails with DBStore and range-based branching mapping strategy. - // The reason is that this strategy uses partially loaded resources internally. + // 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. // Set up a resource with 1 object as content CDOSession session = openSession(); @@ -66,6 +64,7 @@ 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(); @@ -95,6 +94,7 @@ public class Bugzilla_369646_Test extends AbstractCDOTest // commit transaction.commit(); + transaction.close(); session.close(); } @@ -114,4 +114,5 @@ public class Bugzilla_369646_Test extends AbstractCDOTest view.setBranch(view.getBranch().getBranches()[0]); IOUtil.OUT().println("Result: " + cat.getCategories()); } + } |