test_class.declarator: environmentVariables = new EnvironmentVariables()
test_class.modifier: @Rule
      public
test_class.original_string: @Rule
      public EnvironmentVariables environmentVariables = new EnvironmentVariables();
test_class.type: EnvironmentVariables
test_class.var_name: environmentVariables
test_class.declarator: uploaderApp = new UploaderApp()
      {
          protected ApplicationContext createApplicationContext()
          {
              return applicationContext;
          }
      }
test_class.modifier: private
test_class.original_string: private UploaderApp uploaderApp = new UploaderApp()
      {
          protected ApplicationContext createApplicationContext()
          {
              return applicationContext;
          }
      };
test_class.type: UploaderApp
test_class.var_name: uploaderApp
test_class.file: herd-code/herd-tools/herd-uploader/src/test/java/org/finra/herd/tools/uploader/UploaderAppTest.java
test_class.identifier: UploaderAppTest
test_class.superclass: extends AbstractUploaderTest
test_case.body: @Test
      public void testGoEnvPasswordSuccess()
      {
          environmentVariables.set("HERD_PASSWORD", "WEB_SERVICE_HTTPS_PASSWORD");
          String[] arguments = {"--s3AccessKey", S3_ACCESS_KEY, "--s3SecretKey", S3_SECRET_KEY, "--s3Endpoint", S3_ENDPOINT_US_STANDARD, "--localPath",
              LOCAL_TEMP_PATH_INPUT.toString(), "--manifestPath", STRING_VALUE, "--regServerHost", WEB_SERVICE_HOSTNAME, "--regServerPort",
              WEB_SERVICE_HTTPS_PORT.toString(), "--httpProxyHost", HTTP_PROXY_HOST, "--httpProxyPort", HTTP_PROXY_PORT.toString(), "--ssl", "true", "-u",
              WEB_SERVICE_HTTPS_USERNAME, "-E", "true", "-C", "true", "-d", "true"};
          assertNull(uploaderApp.parseCommandLineArguments(arguments, applicationContext));
  
          environmentVariables.clear("HERD_PASSWORD");
      }
test_case.class_method_signature: UploaderAppTest.testGoEnvPasswordSuccess()
test_case.full_signature: @Test public void testGoEnvPasswordSuccess()
test_case.identifier: testGoEnvPasswordSuccess
test_case.invocations: set toString toString toString assertNull parseCommandLineArguments clear
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGoEnvPasswordSuccess()
focal_class.declarator: LOGGER = LoggerFactory.getLogger(UploaderApp.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger LOGGER = LoggerFactory.getLogger(UploaderApp.class);
focal_class.type: Logger
focal_class.var_name: LOGGER
focal_class.declarator: maxRetryAttemptsOpt
focal_class.modifier: private
focal_class.original_string: private Option maxRetryAttemptsOpt;
focal_class.type: Option
focal_class.var_name: maxRetryAttemptsOpt
focal_class.declarator: retryDelaySecsOpt
focal_class.modifier: private
focal_class.original_string: private Option retryDelaySecsOpt;
focal_class.type: Option
focal_class.var_name: retryDelaySecsOpt
focal_class.declarator: createNewVersionOpt
focal_class.modifier: private
focal_class.original_string: private Option createNewVersionOpt;
focal_class.type: Option
focal_class.var_name: createNewVersionOpt
focal_class.declarator: rrsOpt
focal_class.modifier: private
focal_class.original_string: private Option rrsOpt;
focal_class.type: Option
focal_class.var_name: rrsOpt
focal_class.declarator: forceOpt
focal_class.modifier: private
focal_class.original_string: private Option forceOpt;
focal_class.type: Option
focal_class.var_name: forceOpt
focal_class.declarator: maxRetryAttempts
focal_class.modifier: private
focal_class.original_string: private Integer maxRetryAttempts;
focal_class.type: Integer
focal_class.var_name: maxRetryAttempts
focal_class.declarator: retryDelaySecs
focal_class.modifier: private
focal_class.original_string: private Integer retryDelaySecs;
focal_class.type: Integer
focal_class.var_name: retryDelaySecs
focal_class.declarator: argParser
focal_class.modifier: private
focal_class.original_string: private ArgumentParser argParser;
focal_class.type: ArgumentParser
focal_class.var_name: argParser
focal_class.declarator: MAX_RETRY_ATTEMPTS_DEFAULT = 5
focal_class.modifier: private static final
focal_class.original_string: private static final Integer MAX_RETRY_ATTEMPTS_DEFAULT = 5;
focal_class.type: Integer
focal_class.var_name: MAX_RETRY_ATTEMPTS_DEFAULT
focal_class.declarator: MAX_RETRY_ATTEMPTS_MIN = 0
focal_class.modifier: private static final
focal_class.original_string: private static final Integer MAX_RETRY_ATTEMPTS_MIN = 0;
focal_class.type: Integer
focal_class.var_name: MAX_RETRY_ATTEMPTS_MIN
focal_class.declarator: MAX_RETRY_ATTEMPTS_MAX = 10
focal_class.modifier: private static final
focal_class.original_string: private static final Integer MAX_RETRY_ATTEMPTS_MAX = 10;
focal_class.type: Integer
focal_class.var_name: MAX_RETRY_ATTEMPTS_MAX
focal_class.declarator: RETRY_DELAY_SECS_DEFAULT = 120
focal_class.modifier: private static final
focal_class.original_string: private static final Integer RETRY_DELAY_SECS_DEFAULT = 120;
focal_class.type: Integer
focal_class.var_name: RETRY_DELAY_SECS_DEFAULT
focal_class.declarator: RETRY_DELAY_SECS_MIN = 0
focal_class.modifier: private static final
focal_class.original_string: private static final Integer RETRY_DELAY_SECS_MIN = 0;
focal_class.type: Integer
focal_class.var_name: RETRY_DELAY_SECS_MIN
focal_class.declarator: RETRY_DELAY_SECS_MAX = 900
focal_class.modifier: private static final
focal_class.original_string: private static final Integer RETRY_DELAY_SECS_MAX = 900;
focal_class.type: Integer
focal_class.var_name: RETRY_DELAY_SECS_MAX
focal_class.file: herd-code/herd-tools/herd-uploader/src/main/java/org/finra/herd/tools/uploader/UploaderApp.java
focal_class.identifier: UploaderApp
focal_class.class_method_signature: UploaderApp.UploaderApp()
focal_class.full_signature: public  UploaderApp()
focal_class.identifier: UploaderApp
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  UploaderApp()
focal_class.class_method_signature: UploaderApp.parseCommandLineArguments(String[] args, ApplicationContext applicationContext)
focal_class.full_signature: @Override protected ReturnValue parseCommandLineArguments(String[] args, ApplicationContext applicationContext)
focal_class.identifier: parseCommandLineArguments
focal_class.modifiers: @Override protected
focal_class.parameters: (String[] args, ApplicationContext applicationContext)
focal_class.return: ReturnValue
focal_class.signature: ReturnValue parseCommandLineArguments(String[] args, ApplicationContext applicationContext)
focal_class.class_method_signature: UploaderApp.go(String[] args)
focal_class.full_signature: @Override public ReturnValue go(String[] args)
focal_class.identifier: go
focal_class.modifiers: @Override public
focal_class.parameters: (String[] args)
focal_class.return: ReturnValue
focal_class.signature: ReturnValue go(String[] args)
focal_class.class_method_signature: UploaderApp.getArgumentParser()
focal_class.full_signature: @Override public ArgumentParser getArgumentParser()
focal_class.identifier: getArgumentParser
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: ArgumentParser
focal_class.signature: ArgumentParser getArgumentParser()
focal_class.class_method_signature: UploaderApp.main(String[] args)
focal_class.full_signature: @SuppressWarnings("PMD.DoNotCallSystemExit") // Using System.exit is allowed for an actual application to exit. public static void main(String[] args)
focal_class.identifier: main
focal_class.modifiers: @SuppressWarnings("PMD.DoNotCallSystemExit") // Using System.exit is allowed for an actual application to exit. public static
focal_class.parameters: (String[] args)
focal_class.return: void
focal_class.signature: void main(String[] args)
focal_class.superclass: extends DataBridgeApp
focal_method.body: @Override
      protected ReturnValue parseCommandLineArguments(String[] args, ApplicationContext applicationContext)
      {
          ReturnValue returnValue = super.parseCommandLineArguments(args, applicationContext);
  
          // Stop the processing if return value is not null.
          if (returnValue != null)
          {
              return returnValue;
          }
  
          try
          {
              // Extract uploader specific Integer option values here to catch any NumberFormatException exceptions.
              maxRetryAttempts = argParser.getIntegerValue(maxRetryAttemptsOpt, MAX_RETRY_ATTEMPTS_DEFAULT, MAX_RETRY_ATTEMPTS_MIN, MAX_RETRY_ATTEMPTS_MAX);
              retryDelaySecs = argParser.getIntegerValue(retryDelaySecsOpt, RETRY_DELAY_SECS_DEFAULT, RETRY_DELAY_SECS_MIN, RETRY_DELAY_SECS_MAX);
          }
          catch (Exception ex)
          {
              // Log a friendly error and return a failure which will cause the application to exit.
              LOGGER.error("Error parsing command line arguments: " + ex.getMessage() + "\n" + argParser.getUsageInformation());
              return ReturnValue.FAILURE;
          }
  
          // The command line arguments were all parsed successfully so return null to continue processing.
          return null;
      }
focal_method.class_method_signature: UploaderApp.parseCommandLineArguments(String[] args, ApplicationContext applicationContext)
focal_method.full_signature: @Override protected ReturnValue parseCommandLineArguments(String[] args, ApplicationContext applicationContext)
focal_method.identifier: parseCommandLineArguments
focal_method.invocations: parseCommandLineArguments getIntegerValue getIntegerValue error getMessage getUsageInformation
focal_method.modifiers: @Override protected
focal_method.parameters: (String[] args, ApplicationContext applicationContext)
focal_method.return: ReturnValue
focal_method.signature: ReturnValue parseCommandLineArguments(String[] args, ApplicationContext applicationContext)