diff options
author | Eike Stepper | 2011-07-28 07:14:06 +0000 |
---|---|---|
committer | Eike Stepper | 2011-07-28 07:14:06 +0000 |
commit | e7c3c519acd2e3620ad0cb2dd152605144f5af5d (patch) | |
tree | 493d73b18534bdd684bd6afdf4c86d536718ae12 /plugins/org.eclipse.emf.cdo.tests | |
parent | 940c7aca1ace873a557671437f04473052cf9e09 (diff) | |
download | cdo-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
Diffstat (limited to 'plugins/org.eclipse.emf.cdo.tests')
-rw-r--r-- | plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/bugzilla/Bugzilla_296561_Test.java | 5 |
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)); |