test_class.file: kb-importer/src/test/java/org/eclipse/steady/kb/command/ImportTest.java
test_class.identifier: ImportTest
test_case.body: @Test
    public void getOptions() {
      Command command = new Import();
      Options options = command.getOptions();
      assertEquals(options.getOptions().size(), 4);
      assertTrue(options.hasOption("d"));
      assertTrue(options.hasOption("u"));
      assertTrue(options.hasOption("v"));
      assertTrue(options.hasOption("o"));
    }
test_case.class_method_signature: ImportTest.getOptions()
test_case.full_signature: @Test public void getOptions()
test_case.identifier: getOptions
test_case.invocations: getOptions assertEquals size getOptions assertTrue hasOption assertTrue hasOption assertTrue hasOption assertTrue hasOption
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void getOptions()
focal_class.declarator: UPLOAD_CONSTRUCT_OPTION = "u"
focal_class.modifier: private static final
focal_class.original_string: private static final String UPLOAD_CONSTRUCT_OPTION = "u";
focal_class.type: String
focal_class.var_name: UPLOAD_CONSTRUCT_OPTION
focal_class.declarator: DIRECTORY_OPTION = "d"
focal_class.modifier: private static final
focal_class.original_string: private static final String DIRECTORY_OPTION = "d";
focal_class.type: String
focal_class.var_name: DIRECTORY_OPTION
focal_class.declarator: OVERWRITE_OPTION = "o"
focal_class.modifier: private static final
focal_class.original_string: private static final String OVERWRITE_OPTION = "o";
focal_class.type: String
focal_class.var_name: OVERWRITE_OPTION
focal_class.declarator: VERBOSE_OPTION = "v"
focal_class.modifier: private static final
focal_class.original_string: private static final String VERBOSE_OPTION = "v";
focal_class.type: String
focal_class.var_name: VERBOSE_OPTION
focal_class.declarator: UPLOAD_LONG_OPTION = "upload"
focal_class.modifier: private static final
focal_class.original_string: private static final String UPLOAD_LONG_OPTION = "upload";
focal_class.type: String
focal_class.var_name: UPLOAD_LONG_OPTION
focal_class.declarator: VERBOSE_LONG_OPTION = "verbose"
focal_class.modifier: private static final
focal_class.original_string: private static final String VERBOSE_LONG_OPTION = "verbose";
focal_class.type: String
focal_class.var_name: VERBOSE_LONG_OPTION
focal_class.declarator: OVERWRITE_LONG_OPTION = "overwrite"
focal_class.modifier: private static final
focal_class.original_string: private static final String OVERWRITE_LONG_OPTION = "overwrite";
focal_class.type: String
focal_class.var_name: OVERWRITE_LONG_OPTION
focal_class.declarator: DIRECTORY_LONG_OPTION = "directory"
focal_class.modifier: private static final
focal_class.original_string: private static final String DIRECTORY_LONG_OPTION = "directory";
focal_class.type: String
focal_class.var_name: DIRECTORY_LONG_OPTION
focal_class.declarator: log = org.apache.logging.log4j.LogManager.getLogger()
focal_class.modifier: private static final
focal_class.original_string: private static final Logger log = org.apache.logging.log4j.LogManager.getLogger();
focal_class.type: Logger
focal_class.var_name: log
focal_class.file: kb-importer/src/main/java/org/eclipse/steady/kb/command/Import.java
focal_class.identifier: Import
focal_class.interfaces: implements Command
focal_class.class_method_signature: Import.getCommandName()
focal_class.full_signature: @Override public String getCommandName()
focal_class.identifier: getCommandName
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getCommandName()
focal_class.class_method_signature: Import.run(HashMap<String, Object> args)
focal_class.full_signature: @Override public void run(HashMap<String, Object> args)
focal_class.identifier: run
focal_class.modifiers: @Override public
focal_class.parameters: (HashMap<String, Object> args)
focal_class.return: void
focal_class.signature: void run(HashMap<String, Object> args)
focal_class.class_method_signature: Import.getOptions()
focal_class.full_signature: @Override public Options getOptions()
focal_class.identifier: getOptions
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Options
focal_class.signature: Options getOptions()
focal_class.class_method_signature: Import.validate(HashMap<String, Object> args)
focal_class.full_signature: @Override public void validate(HashMap<String, Object> args)
focal_class.identifier: validate
focal_class.modifiers: @Override public
focal_class.parameters: (HashMap<String, Object> args)
focal_class.return: void
focal_class.signature: void validate(HashMap<String, Object> args)
focal_method.body: @Override
    public Options getOptions() {
      Options options = new Options();
      options.addRequiredOption(
          DIRECTORY_OPTION,
          DIRECTORY_LONG_OPTION,
          true,
          "directory containing mutiple commit folders with meta files");
      options.addOption(
          OVERWRITE_OPTION,
          OVERWRITE_LONG_OPTION,
          false,
          "overwrite the bug if it already exists in the backend");
      options.addOption(VERBOSE_OPTION, VERBOSE_LONG_OPTION, false, "Verbose mode");
      options.addOption(
          UPLOAD_CONSTRUCT_OPTION, UPLOAD_LONG_OPTION, false, "Upload construct changes");
  
      return options;
    }
focal_method.class_method_signature: Import.getOptions()
focal_method.full_signature: @Override public Options getOptions()
focal_method.identifier: getOptions
focal_method.invocations: addRequiredOption addOption addOption addOption
focal_method.modifiers: @Override public
focal_method.parameters: ()
focal_method.return: Options
focal_method.signature: Options getOptions()