Merged HEAD-BUG-FIX (5.0/Cloud) to HEAD (5.0/Cloud)

82420: Merged WAT2 (5.0/Cloud) to HEAD-BUG-FIX (5.0/Cloud)
      80335: ACE-2276 - Regression was a deliberate bug fix in activiti.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@83257 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Erik Winlof
2014-09-04 07:08:34 +00:00
parent ce18643be9
commit 03cce24c7a

View File

@@ -146,8 +146,8 @@ public class ActivitiTimerExecutionTest extends BaseSpringTest
WorkflowDefinition definition = deployDefinition("activiti/testTimerTransaction.bpmn20.xml");
// Start the test timer transaction process, with 'error' = false, expecting a timer job
// to be executed without an error, with task timer is assigned to assigned to USER1
// Start the test timer transaction process, with 'error' = true, expecting a timer job
// to be executed with an error, with task timer is assigned to assigned to USER1
Map<QName, Serializable> params = new HashMap<QName, Serializable>();
params.put(QName.createQName("error"), Boolean.TRUE);
params.put(QName.createQName("theTaskAssignee"), USER1);
@@ -181,10 +181,6 @@ public class ActivitiTimerExecutionTest extends BaseSpringTest
}
assertNotNull("Job should have exception message set", timer.getExceptionMessage());
// MER WHAT IS THIS DOING ?
// Regression in 5.16.1
// assertEquals(0, timer.getRetries());
// Check if exception is the one we deliberately caused
String fullExceptionStacktrace = activitiProcessEngine.getManagementService().getJobExceptionStacktrace(timer.getId());
assertTrue(fullExceptionStacktrace.contains("Activiti engine rocks!"));