[jbpm-commits] JBoss JBPM SVN: r3632 - jbpm3/trunk/modules/core/src/test/java/org/jbpm/command.
do-not-reply at jboss.org
do-not-reply at jboss.org
Tue Jan 13 06:39:31 EST 2009
Author: camunda
Date: 2009-01-13 06:39:31 -0500 (Tue, 13 Jan 2009)
New Revision: 3632
Modified:
jbpm3/trunk/modules/core/src/test/java/org/jbpm/command/ProcessInstanceCommandTest.java
Log:
Fixed problems with test case after introducing forUpdate methods in CancelCommands (JBPM-1962)
Modified: jbpm3/trunk/modules/core/src/test/java/org/jbpm/command/ProcessInstanceCommandTest.java
===================================================================
--- jbpm3/trunk/modules/core/src/test/java/org/jbpm/command/ProcessInstanceCommandTest.java 2009-01-12 17:29:23 UTC (rev 3631)
+++ jbpm3/trunk/modules/core/src/test/java/org/jbpm/command/ProcessInstanceCommandTest.java 2009-01-13 11:39:31 UTC (rev 3632)
@@ -78,6 +78,11 @@
Token childToken = (Token)iterator.next();
assertTrue(childToken.hasEnded());
}
+
+ // required to close jbpm context which has an auto save registered for the ProcessInstance
+ // If this is missing, the ProcessInstance gets deleted by the tearDown
+ // and the auto save will cause an exception!
+ super.newTransaction();
}
public void testSuspendResumeProcessInstanceCommand() throws Exception {
More information about the jbpm-commits
mailing list