File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
engine/src/test/java/org/camunda/bpm/engine/test/api/runtime Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -1165,10 +1165,13 @@ public void shouldSetProcessInstanceAndDefinitionIdInHistoryJobLog() {
1165
1165
.processInstanceIds (processInstance .getId ())
1166
1166
.executeAsync ();
1167
1167
helper .executeSeedJob (batch );
1168
- List <Job > executionJobs = helper .getExecutionJobs (batch );
1168
+
1169
+ Job executionJob = helper .getExecutionJobs (batch ).get (0 );
1170
+ assertEquals (processInstance .getProcessDefinitionId (), executionJob .getProcessDefinitionId ());
1171
+ assertEquals (processInstance .getRootProcessInstanceId (), executionJob .getProcessInstanceId ());
1169
1172
1170
1173
// when
1171
- helper .executeJob (executionJobs . get ( 0 ) );
1174
+ helper .executeJob (executionJob );
1172
1175
1173
1176
// then
1174
1177
HistoricJobLog jobLog = historyService .createHistoricJobLogQuery ().jobDefinitionType (Batch .TYPE_PROCESS_INSTANCE_RESTART ).list ().get (0 );
You can’t perform that action at this time.
0 commit comments