Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2011-07-28 03:14:06 -0400
committerEike Stepper2011-07-28 03:14:06 -0400
commite7c3c519acd2e3620ad0cb2dd152605144f5af5d (patch)
tree493d73b18534bdd684bd6afdf4c86d536718ae12
parent940c7aca1ace873a557671437f04473052cf9e09 (diff)
downloadcdo-e7c3c519acd2e3620ad0cb2dd152605144f5af5d.tar.gz
cdo-e7c3c519acd2e3620ad0cb2dd152605144f5af5d.tar.xz
cdo-e7c3c519acd2e3620ad0cb2dd152605144f5af5d.zip
[352977] Dirty Objects of CDOTransaction with CDOSavepoint
https://bugs.eclipse.org/bugs/show_bug.cgi?id=352977
-rw-r--r--plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/bugzilla/Bugzilla_296561_Test.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/bugzilla/Bugzilla_296561_Test.java b/plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/bugzilla/Bugzilla_296561_Test.java
index 4f8b46fc25..5eab70517d 100644
--- a/plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/bugzilla/Bugzilla_296561_Test.java
+++ b/plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/bugzilla/Bugzilla_296561_Test.java
@@ -97,17 +97,17 @@ public class Bugzilla_296561_Test extends AbstractCDOTest
CDOSession session = openSession();
CDOTransaction transaction = session.openTransaction();
CDOResource resource = transaction.createResource(getResourcePath("/test1"));
- resource.getContents().add(customer);
+ resource.getContents().add(customer);
transaction.commit();
session.close();
}
{
CDOSession session = openSession();
-
CDOTransaction transaction = session.openTransaction();
CDOResource res = transaction.getResource(getResourcePath("/test1"));
+
Customer customer = (Customer)res.getContents().get(0);
customer.setName("modified");
@@ -116,6 +116,7 @@ public class Bugzilla_296561_Test extends AbstractCDOTest
res.getContents().add(customer2);
CDOSavepoint savePoint = transaction.setSavepoint();
+
res.getContents().remove(customer2);
savePoint.rollback();
assertEquals(true, res.getContents().contains(customer2));

Back to the top