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 checkAllOfTheOtherFieldsParseOkHere() throws Exception {
  		parser.parse(("-U userid -Ppassword --driver a.b.c --url b:c:d " +
  				"--scriptdirectory . -o output.sql " +
  				"--changeLogTableName my-change-log " +
  				"--dbms ora " +
  				"--templatedir /tmp/mytemplates " +
  				"--delimiter \\ --delimitertype row").split(" "), dbDeploy);
  
  		assertThat(dbDeploy.getUserid(), is("userid"));
  		assertThat(dbDeploy.getPassword(), is("password"));
  		assertThat(dbDeploy.getDriver(), is("a.b.c"));
  		assertThat(dbDeploy.getUrl(), is("b:c:d"));
  		assertThat(dbDeploy.getScriptdirectory().getName(), is("."));
  		assertThat(dbDeploy.getOutputfile().getName(), is("output.sql"));
  		assertThat(dbDeploy.getDbms(), is("ora"));
  		assertThat(dbDeploy.getChangeLogTableName(), is("my-change-log"));
  		assertThat(dbDeploy.getDelimiter(), is("\\"));
  		assertThat(dbDeploy.getDelimiterType(), is(DelimiterType.row));
  		assertThat(dbDeploy.getTemplatedir().getPath(), is(File.separator + "tmp" + File.separator + "mytemplates"));
  	}
test_case.class_method_signature: DbDeployCommandLineParserTest.checkAllOfTheOtherFieldsParseOkHere()
test_case.full_signature: @Test public void checkAllOfTheOtherFieldsParseOkHere()
test_case.identifier: checkAllOfTheOtherFieldsParseOkHere
test_case.invocations: parse split assertThat getUserid is assertThat getPassword is assertThat getDriver is assertThat getUrl is assertThat getName getScriptdirectory is assertThat getName getOutputfile is assertThat getDbms is assertThat getChangeLogTableName is assertThat getDelimiter is assertThat getDelimiterType is assertThat getPath getTemplatedir is
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void checkAllOfTheOtherFieldsParseOkHere()
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)