test_class.declarator: userInputReader = mock(UserInputReader.class)
test_class.original_string: UserInputReader userInputReader = mock(UserInputReader.class);
test_class.type: UserInputReader
test_class.var_name: userInputReader
test_class.declarator: dbDeploy = new DbDeploy()
test_class.modifier: private final
test_class.original_string: private final DbDeploy dbDeploy = new DbDeploy();
test_class.type: DbDeploy
test_class.var_name: dbDeploy
test_class.declarator: parser = new DbDeployCommandLineParser(userInputReader)
test_class.modifier: private final
test_class.original_string: private final DbDeployCommandLineParser parser = new DbDeployCommandLineParser(userInputReader);
test_class.type: DbDeployCommandLineParser
test_class.var_name: parser
test_class.file: dbdeploy-cli/src/test/java/com/dbdeploy/DbDeployCommandLineParserTest.java
test_class.identifier: DbDeployCommandLineParserTest
test_case.body: @Test
  	public void delimiterTypeWorksOk() throws Exception {
  		parser.parse("--delimitertype normal".split(" "), dbDeploy);
  		assertThat(dbDeploy.getDelimiterType(), is(DelimiterType.normal));
  
  		parser.parse("--delimitertype row".split(" "), dbDeploy);
  		assertThat(dbDeploy.getDelimiterType(), is(DelimiterType.row));
  	}
test_case.class_method_signature: DbDeployCommandLineParserTest.delimiterTypeWorksOk()
test_case.full_signature: @Test public void delimiterTypeWorksOk()
test_case.identifier: delimiterTypeWorksOk
test_case.invocations: parse split assertThat getDelimiterType is parse split assertThat getDelimiterType is
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void delimiterTypeWorksOk()
focal_class.declarator: userInputReader
focal_class.modifier: private final
focal_class.original_string: private final UserInputReader userInputReader;
focal_class.type: UserInputReader
focal_class.var_name: userInputReader
focal_class.file: dbdeploy-cli/src/main/java/com/dbdeploy/DbDeployCommandLineParser.java
focal_class.identifier: DbDeployCommandLineParser
focal_class.class_method_signature: DbDeployCommandLineParser.DbDeployCommandLineParser()
focal_class.full_signature: public  DbDeployCommandLineParser()
focal_class.identifier: DbDeployCommandLineParser
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  DbDeployCommandLineParser()
focal_class.class_method_signature: DbDeployCommandLineParser.DbDeployCommandLineParser(UserInputReader userInputReader)
focal_class.full_signature: public  DbDeployCommandLineParser(UserInputReader userInputReader)
focal_class.identifier: DbDeployCommandLineParser
focal_class.modifiers: public
focal_class.parameters: (UserInputReader userInputReader)
focal_class.signature:  DbDeployCommandLineParser(UserInputReader userInputReader)
focal_class.class_method_signature: DbDeployCommandLineParser.parse(String[] args, DbDeploy dbDeploy)
focal_class.full_signature: public void parse(String[] args, DbDeploy dbDeploy)
focal_class.identifier: parse
focal_class.modifiers: public
focal_class.parameters: (String[] args, DbDeploy dbDeploy)
focal_class.return: void
focal_class.signature: void parse(String[] args, DbDeploy dbDeploy)
focal_class.class_method_signature: DbDeployCommandLineParser.copyValuesFromCommandLineToDbDeployBean(DbDeploy dbDeploy, CommandLine commandLine)
focal_class.full_signature: private void copyValuesFromCommandLineToDbDeployBean(DbDeploy dbDeploy, CommandLine commandLine)
focal_class.identifier: copyValuesFromCommandLineToDbDeployBean
focal_class.modifiers: private
focal_class.parameters: (DbDeploy dbDeploy, CommandLine commandLine)
focal_class.return: void
focal_class.signature: void copyValuesFromCommandLineToDbDeployBean(DbDeploy dbDeploy, CommandLine commandLine)
focal_class.class_method_signature: DbDeployCommandLineParser.printUsage()
focal_class.full_signature: public void printUsage()
focal_class.identifier: printUsage
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void printUsage()
focal_class.class_method_signature: DbDeployCommandLineParser.getOptions()
focal_class.full_signature: @SuppressWarnings({"AccessStaticViaInstance"}) private Options getOptions()
focal_class.identifier: getOptions
focal_class.modifiers: @SuppressWarnings({"AccessStaticViaInstance"}) private
focal_class.parameters: ()
focal_class.return: Options
focal_class.signature: Options getOptions()
focal_method.body: public void parse(String[] args, DbDeploy dbDeploy) throws UsageException {
  		try {
  			dbDeploy.setScriptdirectory(new File("."));
              final CommandLine commandLine = new GnuParser().parse(getOptions(), args);
  			copyValuesFromCommandLineToDbDeployBean(dbDeploy, commandLine);
  
              if (commandLine.hasOption("password") && commandLine.getOptionValue("password") == null) {
                  dbDeploy.setPassword(userInputReader.read("Password"));
              }
  		} catch (ParseException e) {
  			throw new UsageException(e.getMessage(), e);
  		}
  	}
focal_method.class_method_signature: DbDeployCommandLineParser.parse(String[] args, DbDeploy dbDeploy)
focal_method.full_signature: public void parse(String[] args, DbDeploy dbDeploy)
focal_method.identifier: parse
focal_method.invocations: setScriptdirectory parse getOptions copyValuesFromCommandLineToDbDeployBean hasOption getOptionValue setPassword read getMessage
focal_method.modifiers: public
focal_method.parameters: (String[] args, DbDeploy dbDeploy)
focal_method.return: void
focal_method.signature: void parse(String[] args, DbDeploy dbDeploy)