Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2013-06-03 03:35:24 -0400
committerEike Stepper2013-06-03 03:35:24 -0400
commit0acbbd0f25950abf32368bf43e583d03228572ac (patch)
tree8012e90ec7c3ab636a3b62eb8742c21888222491
parent1c089e79124569190d722b1d6650d651dc9e8635 (diff)
downloadcdo-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.java11
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)
{

Back to the top