use of com.synopsys.integration.detect.configuration.connection.BlackDuckConnectionDetails in project synopsys-detect by blackducksoftware.
the class ProductDeciderTest method shouldNotRunBlackDuckOfflineWhenUserProvidedHostUrl.
@Test
public void shouldNotRunBlackDuckOfflineWhenUserProvidedHostUrl() {
BlackDuckConnectionDetails blackDuckConnectionDetails = blackDuckConnectionDetails(true, null);
BlackDuckSignatureScannerOptions blackDuckSignatureScannerOptions = blackDuckSignatureScannerOptions(Mockito.mock(Path.class), VALID_URL);
BlackDuckDecision productDecision = new ProductDecider().decideBlackDuck(blackDuckConnectionDetails, blackDuckSignatureScannerOptions, BlackduckScanMode.INTELLIGENT, createBdioOptions(false, true));
Assertions.assertTrue(productDecision.shouldRun());
Assertions.assertTrue(productDecision.isOffline());
}
use of com.synopsys.integration.detect.configuration.connection.BlackDuckConnectionDetails in project synopsys-detect by blackducksoftware.
the class ProductDeciderTest method shouldRunBlackDuckOfflineWhenInstallPath.
@Test
public void shouldRunBlackDuckOfflineWhenInstallPath() {
BlackDuckConnectionDetails blackDuckConnectionDetails = blackDuckConnectionDetails(true, null);
BlackDuckSignatureScannerOptions blackDuckSignatureScannerOptions = blackDuckSignatureScannerOptions(Mockito.mock(Path.class), null);
BlackDuckDecision productDecision = new ProductDecider().decideBlackDuck(blackDuckConnectionDetails, blackDuckSignatureScannerOptions, BlackduckScanMode.INTELLIGENT, createBdioOptions(false, true));
Assertions.assertTrue(productDecision.shouldRun());
Assertions.assertTrue(productDecision.isOffline());
}
Aggregations