AntennaCLISettingsReader { ToolConfiguration.ConfigurationBuilder readBasicSettingsToToolConfigurationBuilder(XmlSettingsReader reader, MetaDataStoringProject project) throws IllegalArgumentException { ToolConfiguration.ConfigurationBuilder toolConfigBuilder = new ToolConfiguration.ConfigurationBuilder(); readProjectStringSetting(reader, "artifactId", project::setProjectId); readAntennaStringSetting(reader, "antennaTargetDirectory", getDefaultAntennaTargetDirectory(project), toolConfigBuilder::setAntennaTargetDirectory); readAntennaStringSetting(reader, "scanDir", toolConfigBuilder::setScanDir); readAntennaStringSetting(reader, "productName", reader.getStringProperty("productName"), toolConfigBuilder::setProductName); readAntennaStringSetting(reader, "productFullname", reader.getStringProperty("productFullname"), toolConfigBuilder::setProductFullName); readAntennaStringSetting(reader, "version", "1.0", toolConfigBuilder::setVersion); readAntennaStringSetting(reader, "companyName", toolConfigBuilder::setCompanyName); readAntennaStringSetting(reader, "copyrightHoldersName", toolConfigBuilder::setCopyrightHoldersName); readAntennaStringSetting(reader, "copyrightNotice", toolConfigBuilder::setCopyrightNotice); readAntennaStringSetting(reader, "attributionDocumentNotes", toolConfigBuilder::setAttributionDocumentNotes); readAntennaStringSetting(reader, "encodingCharSet", toolConfigBuilder::setEncoding); readAntennaStringSetting(reader, "proxyHost", toolConfigBuilder::setProxyHost); readAntennaIntSetting(reader, "proxyPort", 0, toolConfigBuilder::setProxyPort); readAntennaBooleanSetting(reader, "attachAll", false, toolConfigBuilder::setAttachAll); readAntennaBooleanSetting(reader, "skip", false, toolConfigBuilder::setSkipAntennaExecution); readAntennaBooleanSetting(reader, "showCopyrightStatements", false, toolConfigBuilder::setShowCopyrightStatements); readAntennaBooleanSetting(reader, "isMavenInstalled", false, toolConfigBuilder::setMavenInstalled); readStringListSetting(reader, "filesToAttach", toolConfigBuilder::setFilesToAttach); readFileListSetting(reader, "configFiles", toolConfigBuilder::setConfigFiles); return toolConfigBuilder; } AntennaCLISettingsReader();  AntennaCLISettingsReader(String pluginDescendantArtifactName); ToolConfiguration readSettingsToToolConfiguration(MetaDataStoringProject project); ToolConfiguration readSettingsToToolConfiguration(XmlSettingsReader reader, MetaDataStoringProject project);  }
@Test public void readBasicSettingsToToolConfigurationBuilderTest() throws Exception { fillMapsForToolConfiguration(); ToolConfiguration toolConfiguration = tcsr.readBasicSettingsToToolConfigurationBuilder(reader, project).buildConfiguration(); booleanGetters.forEach((key, getter) -> { LOGGER.info("test for: " + key); assertEquals(booleanAnswers.get(key), getter.apply(toolConfiguration)); }); stringGetters.forEach((key, getter) -> { LOGGER.info("test for: " + key); assertEquals(stringAnswers.get(key), getter.apply(toolConfiguration)); }); intGetters.forEach((key, getter) -> { LOGGER.info("test for: " + key); assertEquals(intAnswers.get(key), getter.apply(toolConfiguration)); }); listGetters.forEach((key, getter) -> { LOGGER.info("test for: " + key); assertEquals(listAnswers.get(key), getter.apply(toolConfiguration)); }); }