test_class.declarator: baseAddEmrStep
test_class.modifier: @InjectMocks
      private
test_class.original_string: @InjectMocks
      private BaseAddEmrStep baseAddEmrStep;
test_class.type: BaseAddEmrStep
test_class.var_name: baseAddEmrStep
test_class.declarator: emrStepHelperFactory
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private EmrStepHelperFactory emrStepHelperFactory;
test_class.type: EmrStepHelperFactory
test_class.var_name: emrStepHelperFactory
test_class.declarator: activitiHelper
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private ActivitiHelper activitiHelper;
test_class.type: ActivitiHelper
test_class.var_name: activitiHelper
test_class.declarator: namespace
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private Expression namespace;
test_class.type: Expression
test_class.var_name: namespace
test_class.declarator: emrClusterDefinitionName
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private Expression emrClusterDefinitionName;
test_class.type: Expression
test_class.var_name: emrClusterDefinitionName
test_class.declarator: emrClusterName
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private Expression emrClusterName;
test_class.type: Expression
test_class.var_name: emrClusterName
test_class.declarator: stepName
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private Expression stepName;
test_class.type: Expression
test_class.var_name: stepName
test_class.declarator: continueOnError
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private Expression continueOnError;
test_class.type: Expression
test_class.var_name: continueOnError
test_class.declarator: scriptLocation
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private Expression scriptLocation;
test_class.type: Expression
test_class.var_name: scriptLocation
test_class.declarator: scriptArguments
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private Expression scriptArguments;
test_class.type: Expression
test_class.var_name: scriptArguments
test_class.declarator: emrClusterId
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private Expression emrClusterId;
test_class.type: Expression
test_class.var_name: emrClusterId
test_class.file: herd-code/herd-service/src/test/java/org/finra/herd/service/activiti/task/BaseAddEmrStepTest.java
test_class.identifier: BaseAddEmrStepTest
test_case.body: @Test
      public void populateCommonParamsAssertEmrStepHelperPopulatedCorrectly()
      {
          Object request = "request";
          DelegateExecution execution = mock(DelegateExecution.class);
  
          EmrStepHelper emrStepHelper = mock(EmrStepHelper.class);
          when(emrStepHelperFactory.getStepHelper(any())).thenReturn(emrStepHelper);
          String namespaceString = "namespaceString";
          when(activitiHelper.getExpressionVariableAsString(same(namespace), any())).thenReturn(namespaceString);
          String stepNameString = "stepNameString";
          when(activitiHelper.getExpressionVariableAsString(same(stepName), any())).thenReturn(stepNameString);
          Boolean continueOnErrorBoolean = false;
          when(activitiHelper.getExpressionVariableAsBoolean(same(continueOnError), any(), any(), anyBoolean(), any())).thenReturn(continueOnErrorBoolean);
          String emrClusterDefinitionNameString = "emrClusterDefinitionNameString";
          when(activitiHelper.getExpressionVariableAsString(same(emrClusterDefinitionName), any())).thenReturn(emrClusterDefinitionNameString);
          String emrClusterNameString = "emrClusterNameString";
          when(activitiHelper.getExpressionVariableAsString(same(emrClusterName), any())).thenReturn(emrClusterNameString);
          String emrClusterIdString = "emrClusterIdString";
          when(activitiHelper.getExpressionVariableAsString(same(emrClusterId), any())).thenReturn(emrClusterIdString);
  
          baseAddEmrStep.populateCommonParams(request, execution);
  
          verify(emrStepHelper).setRequestStepName(request, stepNameString);
          verify(emrStepHelper).setRequestContinueOnError(request, continueOnErrorBoolean);
          verify(emrStepHelper).setRequestNamespace(request, namespaceString);
          verify(emrStepHelper).setRequestEmrClusterDefinitionName(request, emrClusterDefinitionNameString);
          verify(emrStepHelper).setRequestEmrClusterName(request, emrClusterNameString);
          verify(emrStepHelper).setRequestEmrClusterId(request, emrClusterIdString);
      }
test_case.class_method_signature: BaseAddEmrStepTest.populateCommonParamsAssertEmrStepHelperPopulatedCorrectly()
test_case.full_signature: @Test public void populateCommonParamsAssertEmrStepHelperPopulatedCorrectly()
test_case.identifier: populateCommonParamsAssertEmrStepHelperPopulatedCorrectly
test_case.invocations: mock mock thenReturn when getStepHelper any thenReturn when getExpressionVariableAsString same any thenReturn when getExpressionVariableAsString same any thenReturn when getExpressionVariableAsBoolean same any any anyBoolean any thenReturn when getExpressionVariableAsString same any thenReturn when getExpressionVariableAsString same any thenReturn when getExpressionVariableAsString same any populateCommonParams setRequestStepName verify setRequestContinueOnError verify setRequestNamespace verify setRequestEmrClusterDefinitionName verify setRequestEmrClusterName verify setRequestEmrClusterId verify
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void populateCommonParamsAssertEmrStepHelperPopulatedCorrectly()
focal_class.declarator: VARIABLE_EMR_STEP_ID = "emrStepId"
focal_class.modifier: public static final
focal_class.original_string: public static final String VARIABLE_EMR_STEP_ID = "emrStepId";
focal_class.type: String
focal_class.var_name: VARIABLE_EMR_STEP_ID
focal_class.declarator: emrService
focal_class.modifier: @Autowired
      private
focal_class.original_string: @Autowired
      private EmrService emrService;
focal_class.type: EmrService
focal_class.var_name: emrService
focal_class.declarator: emrStepHelperFactory
focal_class.modifier: @Autowired
      private
focal_class.original_string: @Autowired
      private EmrStepHelperFactory emrStepHelperFactory;
focal_class.type: EmrStepHelperFactory
focal_class.var_name: emrStepHelperFactory
focal_class.declarator: namespace
focal_class.modifier: protected
focal_class.original_string: protected Expression namespace;
focal_class.type: Expression
focal_class.var_name: namespace
focal_class.declarator: emrClusterDefinitionName
focal_class.modifier: protected
focal_class.original_string: protected Expression emrClusterDefinitionName;
focal_class.type: Expression
focal_class.var_name: emrClusterDefinitionName
focal_class.declarator: emrClusterName
focal_class.modifier: protected
focal_class.original_string: protected Expression emrClusterName;
focal_class.type: Expression
focal_class.var_name: emrClusterName
focal_class.declarator: stepName
focal_class.modifier: protected
focal_class.original_string: protected Expression stepName;
focal_class.type: Expression
focal_class.var_name: stepName
focal_class.declarator: continueOnError
focal_class.modifier: protected
focal_class.original_string: protected Expression continueOnError;
focal_class.type: Expression
focal_class.var_name: continueOnError
focal_class.declarator: scriptLocation
focal_class.modifier: protected
focal_class.original_string: protected Expression scriptLocation;
focal_class.type: Expression
focal_class.var_name: scriptLocation
focal_class.declarator: scriptArguments
focal_class.modifier: protected
focal_class.original_string: protected Expression scriptArguments;
focal_class.type: Expression
focal_class.var_name: scriptArguments
focal_class.declarator: emrClusterId
focal_class.modifier: protected
focal_class.original_string: protected Expression emrClusterId;
focal_class.type: Expression
focal_class.var_name: emrClusterId
focal_class.declarator: accountId
focal_class.modifier: protected
focal_class.original_string: protected Expression accountId;
focal_class.type: Expression
focal_class.var_name: accountId
focal_class.file: herd-code/herd-service/src/main/java/org/finra/herd/service/activiti/task/BaseAddEmrStep.java
focal_class.identifier: BaseAddEmrStep
focal_class.class_method_signature: BaseAddEmrStep.addEmrStepAndSetWorkflowVariables(Object request, DelegateExecution execution)
focal_class.full_signature: protected void addEmrStepAndSetWorkflowVariables(Object request, DelegateExecution execution)
focal_class.identifier: addEmrStepAndSetWorkflowVariables
focal_class.modifiers: protected
focal_class.parameters: (Object request, DelegateExecution execution)
focal_class.return: void
focal_class.signature: void addEmrStepAndSetWorkflowVariables(Object request, DelegateExecution execution)
focal_class.class_method_signature: BaseAddEmrStep.getNamespace(DelegateExecution execution)
focal_class.full_signature: protected String getNamespace(DelegateExecution execution)
focal_class.identifier: getNamespace
focal_class.modifiers: protected
focal_class.parameters: (DelegateExecution execution)
focal_class.return: String
focal_class.signature: String getNamespace(DelegateExecution execution)
focal_class.class_method_signature: BaseAddEmrStep.getEmrClusterDefinitionName(DelegateExecution execution)
focal_class.full_signature: protected String getEmrClusterDefinitionName(DelegateExecution execution)
focal_class.identifier: getEmrClusterDefinitionName
focal_class.modifiers: protected
focal_class.parameters: (DelegateExecution execution)
focal_class.return: String
focal_class.signature: String getEmrClusterDefinitionName(DelegateExecution execution)
focal_class.class_method_signature: BaseAddEmrStep.getEmrClusterName(DelegateExecution execution)
focal_class.full_signature: protected String getEmrClusterName(DelegateExecution execution)
focal_class.identifier: getEmrClusterName
focal_class.modifiers: protected
focal_class.parameters: (DelegateExecution execution)
focal_class.return: String
focal_class.signature: String getEmrClusterName(DelegateExecution execution)
focal_class.class_method_signature: BaseAddEmrStep.getStepName(DelegateExecution execution)
focal_class.full_signature: protected String getStepName(DelegateExecution execution)
focal_class.identifier: getStepName
focal_class.modifiers: protected
focal_class.parameters: (DelegateExecution execution)
focal_class.return: String
focal_class.signature: String getStepName(DelegateExecution execution)
focal_class.class_method_signature: BaseAddEmrStep.getContinueOnError(DelegateExecution execution)
focal_class.full_signature: protected boolean getContinueOnError(DelegateExecution execution)
focal_class.identifier: getContinueOnError
focal_class.modifiers: protected
focal_class.parameters: (DelegateExecution execution)
focal_class.return: boolean
focal_class.signature: boolean getContinueOnError(DelegateExecution execution)
focal_class.class_method_signature: BaseAddEmrStep.getScriptLocation(DelegateExecution execution)
focal_class.full_signature: protected String getScriptLocation(DelegateExecution execution)
focal_class.identifier: getScriptLocation
focal_class.modifiers: protected
focal_class.parameters: (DelegateExecution execution)
focal_class.return: String
focal_class.signature: String getScriptLocation(DelegateExecution execution)
focal_class.class_method_signature: BaseAddEmrStep.getScriptArguments(DelegateExecution execution)
focal_class.full_signature: protected List<String> getScriptArguments(DelegateExecution execution)
focal_class.identifier: getScriptArguments
focal_class.modifiers: protected
focal_class.parameters: (DelegateExecution execution)
focal_class.return: List<String>
focal_class.signature: List<String> getScriptArguments(DelegateExecution execution)
focal_class.class_method_signature: BaseAddEmrStep.getEmrClusterId(DelegateExecution execution)
focal_class.full_signature: protected String getEmrClusterId(DelegateExecution execution)
focal_class.identifier: getEmrClusterId
focal_class.modifiers: protected
focal_class.parameters: (DelegateExecution execution)
focal_class.return: String
focal_class.signature: String getEmrClusterId(DelegateExecution execution)
focal_class.class_method_signature: BaseAddEmrStep.getAccountId(DelegateExecution execution)
focal_class.full_signature: protected String getAccountId(DelegateExecution execution)
focal_class.identifier: getAccountId
focal_class.modifiers: protected
focal_class.parameters: (DelegateExecution execution)
focal_class.return: String
focal_class.signature: String getAccountId(DelegateExecution execution)
focal_class.class_method_signature: BaseAddEmrStep.populateCommonParams(Object request, DelegateExecution execution)
focal_class.full_signature: protected void populateCommonParams(Object request, DelegateExecution execution)
focal_class.identifier: populateCommonParams
focal_class.modifiers: protected
focal_class.parameters: (Object request, DelegateExecution execution)
focal_class.return: void
focal_class.signature: void populateCommonParams(Object request, DelegateExecution execution)
focal_class.superclass: extends BaseJavaDelegate
focal_method.body: protected void populateCommonParams(Object request, DelegateExecution execution)
      {
          EmrStepHelper stepHelper = emrStepHelperFactory.getStepHelper(request.getClass().getName());
  
          stepHelper.setRequestStepName(request, getStepName(execution));
          stepHelper.setRequestContinueOnError(request, getContinueOnError(execution));
          stepHelper.setRequestNamespace(request, getNamespace(execution));
          stepHelper.setRequestEmrClusterDefinitionName(request, getEmrClusterDefinitionName(execution));
          stepHelper.setRequestEmrClusterName(request, getEmrClusterName(execution));
          stepHelper.setRequestEmrClusterId(request, getEmrClusterId(execution));
          stepHelper.setRequestAccountId(request, getAccountId(execution));
      }
focal_method.class_method_signature: BaseAddEmrStep.populateCommonParams(Object request, DelegateExecution execution)
focal_method.full_signature: protected void populateCommonParams(Object request, DelegateExecution execution)
focal_method.identifier: populateCommonParams
focal_method.invocations: getStepHelper getName getClass setRequestStepName getStepName setRequestContinueOnError getContinueOnError setRequestNamespace getNamespace setRequestEmrClusterDefinitionName getEmrClusterDefinitionName setRequestEmrClusterName getEmrClusterName setRequestEmrClusterId getEmrClusterId setRequestAccountId getAccountId
focal_method.modifiers: protected
focal_method.parameters: (Object request, DelegateExecution execution)
focal_method.return: void
focal_method.signature: void populateCommonParams(Object request, DelegateExecution execution)