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 {
Show replies by date