test_class.file: herd-code/herd-service/src/test/java/org/finra/herd/service/helper/JobDefinitionHelperTest.java
test_class.identifier: JobDefinitionHelperTest
test_class.superclass: extends AbstractServiceTest
test_case.body: @Test
      public void testMaskPassword()
      {
          Parameter parameter = new Parameter(null, null);
          jobDefinitionHelper.maskPassword(parameter);
          //name is still null
          assertNull(parameter.getName());
          parameter = new Parameter("name", "val");
          //no mask is expected
          jobDefinitionHelper.maskPassword(parameter);
          assertEquals(parameter.getValue(), "val");
          parameter = new Parameter("passWord", "val");
          jobDefinitionHelper.maskPassword(parameter);
          assertEquals(parameter.getValue(), "****");
      }
test_case.class_method_signature: JobDefinitionHelperTest.testMaskPassword()
test_case.full_signature: @Test public void testMaskPassword()
test_case.identifier: testMaskPassword
test_case.invocations: maskPassword assertNull getName maskPassword assertEquals getValue maskPassword assertEquals getValue
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testMaskPassword()
focal_class.declarator: configurationHelper
focal_class.modifier: @Autowired
      private
focal_class.original_string: @Autowired
      private ConfigurationHelper configurationHelper;
focal_class.type: ConfigurationHelper
focal_class.var_name: configurationHelper
focal_class.file: herd-code/herd-service/src/main/java/org/finra/herd/service/helper/JobDefinitionHelper.java
focal_class.identifier: JobDefinitionHelper
focal_class.class_method_signature: JobDefinitionHelper.buildActivitiIdString(String namespaceCd, String jobName)
focal_class.full_signature: public String buildActivitiIdString(String namespaceCd, String jobName)
focal_class.identifier: buildActivitiIdString
focal_class.modifiers: public
focal_class.parameters: (String namespaceCd, String jobName)
focal_class.return: String
focal_class.signature: String buildActivitiIdString(String namespaceCd, String jobName)
focal_class.class_method_signature: JobDefinitionHelper.getActivitiJobDefinitionTemplate()
focal_class.full_signature: public String getActivitiJobDefinitionTemplate()
focal_class.identifier: getActivitiJobDefinitionTemplate
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getActivitiJobDefinitionTemplate()
focal_class.class_method_signature: JobDefinitionHelper.getJobNameToken()
focal_class.full_signature: public String getJobNameToken()
focal_class.identifier: getJobNameToken
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getJobNameToken()
focal_class.class_method_signature: JobDefinitionHelper.getNamespaceAndJobNameRegexPattern()
focal_class.full_signature: public Pattern getNamespaceAndJobNameRegexPattern()
focal_class.identifier: getNamespaceAndJobNameRegexPattern
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Pattern
focal_class.signature: Pattern getNamespaceAndJobNameRegexPattern()
focal_class.class_method_signature: JobDefinitionHelper.getJobDefinitionKey(String processDefinitionKey)
focal_class.full_signature: public JobDefinitionAlternateKeyDto getJobDefinitionKey(String processDefinitionKey)
focal_class.identifier: getJobDefinitionKey
focal_class.modifiers: public
focal_class.parameters: (String processDefinitionKey)
focal_class.return: JobDefinitionAlternateKeyDto
focal_class.signature: JobDefinitionAlternateKeyDto getJobDefinitionKey(String processDefinitionKey)
focal_class.class_method_signature: JobDefinitionHelper.getJobDefinitionKey(String processDefinitionKey, Pattern regexPattern)
focal_class.full_signature: public JobDefinitionAlternateKeyDto getJobDefinitionKey(String processDefinitionKey, Pattern regexPattern)
focal_class.identifier: getJobDefinitionKey
focal_class.modifiers: public
focal_class.parameters: (String processDefinitionKey, Pattern regexPattern)
focal_class.return: JobDefinitionAlternateKeyDto
focal_class.signature: JobDefinitionAlternateKeyDto getJobDefinitionKey(String processDefinitionKey, Pattern regexPattern)
focal_class.class_method_signature: JobDefinitionHelper.getNamespaceToken()
focal_class.full_signature: public String getNamespaceToken()
focal_class.identifier: getNamespaceToken
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getNamespaceToken()
focal_class.class_method_signature: JobDefinitionHelper.maskPassword(Parameter parameter)
focal_class.full_signature: public void maskPassword(Parameter parameter)
focal_class.identifier: maskPassword
focal_class.modifiers: public
focal_class.parameters: (Parameter parameter)
focal_class.return: void
focal_class.signature: void maskPassword(Parameter parameter)
focal_method.body: public void maskPassword(Parameter parameter)
      {
          if (parameter.getName() != null)
          {
              String name = parameter.getName().toUpperCase();
              if (name.contains("PASSWORD"))
              {
                  parameter.setValue("****");
              }
          }
      }
focal_method.class_method_signature: JobDefinitionHelper.maskPassword(Parameter parameter)
focal_method.full_signature: public void maskPassword(Parameter parameter)
focal_method.identifier: maskPassword
focal_method.invocations: getName toUpperCase getName contains setValue
focal_method.modifiers: public
focal_method.parameters: (Parameter parameter)
focal_method.return: void
focal_method.signature: void maskPassword(Parameter parameter)