diff options
author | Eike Stepper | 2013-06-03 07:35:24 +0000 |
---|---|---|
committer | Eike Stepper | 2013-06-03 07:35:24 +0000 |
commit | 0acbbd0f25950abf32368bf43e583d03228572ac (patch) | |
tree | 8012e90ec7c3ab636a3b62eb8742c21888222491 | |
parent | 1c089e79124569190d722b1d6650d651dc9e8635 (diff) | |
download | cdo-0acbbd0f25950abf32368bf43e583d03228572ac.tar.gz cdo-0acbbd0f25950abf32368bf43e583d03228572ac.tar.xz cdo-0acbbd0f25950abf32368bf43e583d03228572ac.zip |
Add AbstractCDOTest.commitAndSync(CDOTransaction, String,
CDOUpdatable...)
-rw-r--r-- | plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/AbstractCDOTest.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/AbstractCDOTest.java b/plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/AbstractCDOTest.java index 8465e94a7d..f37e8d2c4e 100644 --- a/plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/AbstractCDOTest.java +++ b/plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/AbstractCDOTest.java @@ -324,6 +324,12 @@ public abstract class AbstractCDOTest extends ConfigTest protected static CDOCommitInfo commitAndSync(CDOTransaction transaction, CDOUpdatable... updatables) throws CommitException { + return commitAndSync(transaction, null, updatables); + } + + protected static CDOCommitInfo commitAndSync(CDOTransaction transaction, String comment, CDOUpdatable... updatables) + throws CommitException + { final RuntimeException[] exception = { null }; IListener listener = new IListener() { @@ -348,6 +354,11 @@ public abstract class AbstractCDOTest extends ConfigTest try { + if (comment != null) + { + transaction.setCommitComment(comment); + } + CDOCommitInfo info = transaction.commit(); if (info != null) { |