@@ -376,7 +376,7 @@ public void testCreateNewWorkflow() {
376376
377377 // Bypass putInitialStateToWorkflowState and force on response
378378 doAnswer (invocation -> {
379- ActionListener <IndexResponse > responseListener = invocation .getArgument (3 );
379+ ActionListener <IndexResponse > responseListener = invocation .getArgument (4 );
380380 responseListener .onResponse (new IndexResponse (new ShardId (WORKFLOW_STATE_INDEX , "" , 1 ), "1" , 1L , 1L , 1L , true ));
381381 return null ;
382382 }).when (flowFrameworkIndicesHandler ).putInitialStateToWorkflowState (any (), any (), any (), any (), any ());
@@ -450,7 +450,7 @@ public void testCreateWithUserAndFilterOn() {
450450
451451 // Bypass putInitialStateToWorkflowState and force on response
452452 doAnswer (invocation -> {
453- ActionListener <IndexResponse > responseListener = invocation .getArgument (3 );
453+ ActionListener <IndexResponse > responseListener = invocation .getArgument (4 );
454454 responseListener .onResponse (new IndexResponse (new ShardId (WORKFLOW_STATE_INDEX , "" , 1 ), "1" , 1L , 1L , 1L , true ));
455455 return null ;
456456 }).when (flowFrameworkIndicesHandler ).putInitialStateToWorkflowState (any (), any (), any (), any (), any ());
@@ -925,7 +925,7 @@ public void testCreateWorkflow_withValidation_withProvision_Success() throws Exc
925925
926926 // Bypass putInitialStateToWorkflowState and force on response
927927 doAnswer (invocation -> {
928- ActionListener <IndexResponse > responseListener = invocation .getArgument (3 );
928+ ActionListener <IndexResponse > responseListener = invocation .getArgument (4 );
929929 responseListener .onResponse (new IndexResponse (new ShardId (WORKFLOW_STATE_INDEX , "" , 1 ), "1" , 1L , 1L , 1L , true ));
930930 return null ;
931931 }).when (flowFrameworkIndicesHandler ).putInitialStateToWorkflowState (any (), any (), any (), any (), any ());
@@ -986,7 +986,7 @@ public void testCreateWorkflow_withValidation_withWaitForCompletion_withProvisio
986986
987987 // Bypass putInitialStateToWorkflowState and force on response
988988 doAnswer (invocation -> {
989- ActionListener <IndexResponse > responseListener = invocation .getArgument (3 );
989+ ActionListener <IndexResponse > responseListener = invocation .getArgument (4 );
990990 responseListener .onResponse (new IndexResponse (new ShardId (WORKFLOW_STATE_INDEX , "" , 1 ), "1" , 1L , 1L , 1L , true ));
991991 return null ;
992992 }).when (flowFrameworkIndicesHandler ).putInitialStateToWorkflowState (any (), any (), any (), any (), any ());
@@ -1063,7 +1063,7 @@ public void testCreateWorkflow_withValidation_withWaitForCompletionTimeSetZero_w
10631063
10641064 // Bypass putInitialStateToWorkflowState and force on response
10651065 doAnswer (invocation -> {
1066- ActionListener <IndexResponse > responseListener = invocation .getArgument (3 );
1066+ ActionListener <IndexResponse > responseListener = invocation .getArgument (4 );
10671067 responseListener .onResponse (new IndexResponse (new ShardId (WORKFLOW_STATE_INDEX , "" , 1 ), "1" , 1L , 1L , 1L , true ));
10681068 return null ;
10691069 }).when (flowFrameworkIndicesHandler ).putInitialStateToWorkflowState (any (), any (), any (), any (), any ());
@@ -1140,7 +1140,7 @@ public void testCreateWorkflow_withValidation_withProvision_FailedProvisioning()
11401140
11411141 // Bypass putInitialStateToWorkflowState and force on response
11421142 doAnswer (invocation -> {
1143- ActionListener <IndexResponse > responseListener = invocation .getArgument (3 );
1143+ ActionListener <IndexResponse > responseListener = invocation .getArgument (4 );
11441144 responseListener .onResponse (new IndexResponse (new ShardId (WORKFLOW_STATE_INDEX , "" , 1 ), "1" , 1L , 1L , 1L , true ));
11451145 return null ;
11461146 }).when (flowFrameworkIndicesHandler ).putInitialStateToWorkflowState (any (), any (), any (), any (), any ());
0 commit comments