Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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