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 validate() throws ValidationException {
      Command command = new Import();
      HashMap<String, Object> args = new HashMap<String, Object>();
      args.put("d", ImportTest.class.getClassLoader().getResource("testRootDir1").getPath());
      command.validate(args);
    }
test_case.class_method_signature: ImportTest.validate()
test_case.full_signature: @Test public void validate()
test_case.identifier: validate
test_case.invocations: put getPath getResource getClassLoader validate
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void validate()
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 void validate(HashMap<String, Object> args) throws ValidationException {
      String dir = (String) args.get(DIRECTORY_OPTION);
      if (!Files.isDirectory(Paths.get(dir))) {
        throw new ValidationException("directory " + dir + "does not exist");
      }
    }
focal_method.class_method_signature: Import.validate(HashMap<String, Object> args)
focal_method.full_signature: @Override public void validate(HashMap<String, Object> args)
focal_method.identifier: validate
focal_method.invocations: get isDirectory get
focal_method.modifiers: @Override public
focal_method.parameters: (HashMap<String, Object> args)
focal_method.return: void
focal_method.signature: void validate(HashMap<String, Object> args)