use of org.eclipse.dash.licenses.ISettings in project dash-licenses by eclipse.
the class CommandLineSettingsTest method testCustomLicenseCheckUrl.
@Test
void testCustomLicenseCheckUrl() {
String url = "http://localhost/license.php";
ISettings settings = CommandLineSettings.getSettings(new String[] { "-ef", url });
assertEquals(url, settings.getLicenseCheckUrl());
}
use of org.eclipse.dash.licenses.ISettings in project dash-licenses by eclipse.
the class CommandLineSettingsTest method testCustomClearlyDefinedDefinitionsUrl.
@Test
void testCustomClearlyDefinedDefinitionsUrl() {
String url = "http://localhost/license.php";
ISettings settings = CommandLineSettings.getSettings(new String[] { "-cd", url });
assertEquals(url, settings.getClearlyDefinedDefinitionsUrl());
}
use of org.eclipse.dash.licenses.ISettings in project dash-licenses by eclipse.
the class CommandLineSettingsTest method testCustomConfidence.
@Test
void testCustomConfidence() {
ISettings settings = CommandLineSettings.getSettings(new String[] { "-confidence", "42" });
assertEquals(42, settings.getConfidenceThreshold());
}
use of org.eclipse.dash.licenses.ISettings in project dash-licenses by eclipse.
the class CommandLineSettingsTest method testCustomBatchSize.
@Test
void testCustomBatchSize() {
ISettings settings = CommandLineSettings.getSettings(new String[] { "-batch", "42" });
assertEquals(42, settings.getBatchSize());
}
use of org.eclipse.dash.licenses.ISettings in project dash-licenses by eclipse.
the class CommandLineSettingsTest method testCustomApprovedLicensesUrl.
@Test
void testCustomApprovedLicensesUrl() {
String url = "http://localhost/license.php";
ISettings settings = CommandLineSettings.getSettings(new String[] { "-lic", url });
assertEquals(url, settings.getApprovedLicensesUrl());
}
Aggregations