diff --git a/engine/src/test/java/org/camunda/bpm/engine/test/api/history/removaltime/batch/BatchSetRemovalTimeTest.java b/engine/src/test/java/org/camunda/bpm/engine/test/api/history/removaltime/batch/BatchSetRemovalTimeTest.java index a4a068ff63f..adb96a1cde1 100644 --- a/engine/src/test/java/org/camunda/bpm/engine/test/api/history/removaltime/batch/BatchSetRemovalTimeTest.java +++ b/engine/src/test/java/org/camunda/bpm/engine/test/api/history/removaltime/batch/BatchSetRemovalTimeTest.java @@ -421,7 +421,7 @@ public void shouldSetRemovalTimeForBatch_MultipleInvocationsPerBatchJob() { } @Test - public void shouldCreateProcessInstanceRelatedBatchJobsForSingleInvocations() { + public void testRemovalTimeProcess_shouldCreateProcessInstanceRelatedBatchJobsForSingleInvocations() { // given testRule.getProcessEngineConfiguration().setInvocationsPerBatchJob(1); diff --git a/engine/src/test/java/org/camunda/bpm/engine/test/api/runtime/UpdateProcessInstancesSuspendStateAsyncTest.java b/engine/src/test/java/org/camunda/bpm/engine/test/api/runtime/UpdateProcessInstancesSuspendStateAsyncTest.java index 7a9700ec3a9..966d3c1b1cc 100644 --- a/engine/src/test/java/org/camunda/bpm/engine/test/api/runtime/UpdateProcessInstancesSuspendStateAsyncTest.java +++ b/engine/src/test/java/org/camunda/bpm/engine/test/api/runtime/UpdateProcessInstancesSuspendStateAsyncTest.java @@ -194,9 +194,20 @@ public void testBatchActivationById() { // when Batch suspendprocess = runtimeService.updateProcessInstanceSuspensionState().byProcessInstanceIds(Arrays.asList(processInstance1.getId(), processInstance2.getId())).suspendAsync(); helper.completeSeedJobs(suspendprocess); + + //Making sure that processInstanceId is set in execution jobs #4205 + assertThat(helper.getExecutionJobs(suspendprocess)) + .extracting("processInstanceId") + .containsExactlyInAnyOrder(processInstance1.getId(), processInstance2.getId()); + helper.executeJobs(suspendprocess); Batch activateprocess = runtimeService.updateProcessInstanceSuspensionState().byProcessInstanceIds(Arrays.asList(processInstance1.getId(), processInstance2.getId())).activateAsync(); helper.completeSeedJobs(activateprocess); + + //Making sure that processInstanceId is set in execution jobs #4205 + assertThat(helper.getExecutionJobs(activateprocess)) + .extracting("processInstanceId") + .containsExactlyInAnyOrder(processInstance1.getId(), processInstance2.getId()); helper.executeJobs(activateprocess);