提交 a4662237 编写于 作者: J Joram Barrez

Fix for failing QA test on MySQL

上级 ad69603a
......@@ -105,7 +105,7 @@ public class JobEventsTest extends PluggableActivitiTestCase {
processEngineConfiguration.setClock(testClock);
testClock.setCurrentTime(new Date(0));
testClock.setCurrentTime(new Date(1));
ProcessInstance processInstance = runtimeService.startProcessInstanceByKey("testRepetitionJobEvents");
Job theJob = managementService.createJobQuery().processInstanceId(processInstance.getId()).singleResult();
assertNotNull(theJob);
......@@ -156,7 +156,7 @@ public class JobEventsTest extends PluggableActivitiTestCase {
processEngineConfiguration.setClock(testClock);
testClock.setCurrentTime(new Date(0));
testClock.setCurrentTime(new Date(1));
runtimeService.startProcessInstanceByKey("testTimerCancelledEvent");
listener.clearEventsReceived();
......@@ -170,7 +170,7 @@ public class JobEventsTest extends PluggableActivitiTestCase {
@Deployment(resources = "org/activiti/engine/test/api/event/JobEventsTest.testJobCanceledEventOnBoundaryEvent.bpmn20.xml")
public void testJobCanceledEventByManagementService() throws Exception {
// GIVEN
processEngineConfiguration.getClock().setCurrentTime(new Date(0));
processEngineConfiguration.getClock().setCurrentTime(new Date(1));
ProcessInstance processInstance = runtimeService.startProcessInstanceByKey("testTimerCancelledEvent");
listener.clearEventsReceived();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册