use of com.synopsys.integration.detect.lifecycle.boot.decision.BlackDuckDecision in project synopsys-detect by blackducksoftware.
the class ProductDeciderTest method shouldNotRunBlackduckRapidModeAndBDIO2Disabled.
@Test
public void shouldNotRunBlackduckRapidModeAndBDIO2Disabled() {
BlackDuckConnectionDetails blackDuckConnectionDetails = blackDuckConnectionDetails(false, VALID_URL);
BlackDuckSignatureScannerOptions blackDuckSignatureScannerOptions = blackDuckSignatureScannerOptions(null, null);
BlackDuckDecision productDecision = new ProductDecider().decideBlackDuck(blackDuckConnectionDetails, blackDuckSignatureScannerOptions, BlackduckScanMode.RAPID, createBdioOptions(false, true));
Assertions.assertFalse(productDecision.shouldRun());
}
use of com.synopsys.integration.detect.lifecycle.boot.decision.BlackDuckDecision in project synopsys-detect by blackducksoftware.
the class ProductDeciderTest method shouldRunBlackduckIntelligentModeAndBDIO2Enabled.
@Test
public void shouldRunBlackduckIntelligentModeAndBDIO2Enabled() {
BlackDuckConnectionDetails blackDuckConnectionDetails = blackDuckConnectionDetails(false, VALID_URL);
BlackDuckSignatureScannerOptions blackDuckSignatureScannerOptions = blackDuckSignatureScannerOptions(null, null);
BlackDuckDecision productDecision = new ProductDecider().decideBlackDuck(blackDuckConnectionDetails, blackDuckSignatureScannerOptions, BlackduckScanMode.INTELLIGENT, createBdioOptions(true, false));
Assertions.assertTrue(productDecision.shouldRun());
}
use of com.synopsys.integration.detect.lifecycle.boot.decision.BlackDuckDecision in project synopsys-detect by blackducksoftware.
the class ProductDeciderTest method shouldRunIntelligentOfflineEvenWhenUrlProvided.
@Test
public void shouldRunIntelligentOfflineEvenWhenUrlProvided() {
BlackDuckConnectionDetails blackDuckConnectionDetails = blackDuckConnectionDetails(true, VALID_URL);
BlackDuckDecision productDecision = new ProductDecider().decideBlackDuck(blackDuckConnectionDetails, BlackduckScanMode.INTELLIGENT);
assertOfflineDecision(productDecision);
}
use of com.synopsys.integration.detect.lifecycle.boot.decision.BlackDuckDecision in project synopsys-detect by blackducksoftware.
the class ProductDeciderTest method shouldRunIntelligentOffline.
@Test
public void shouldRunIntelligentOffline() {
BlackDuckConnectionDetails blackDuckConnectionDetails = blackDuckConnectionDetails(true, null);
BlackDuckDecision productDecision = new ProductDecider().decideBlackDuck(blackDuckConnectionDetails, BlackduckScanMode.INTELLIGENT);
assertOfflineDecision(productDecision);
}
use of com.synopsys.integration.detect.lifecycle.boot.decision.BlackDuckDecision in project synopsys-detect by blackducksoftware.
the class ProductDeciderTest method shouldNotRunRapidOffline.
@Test
public void shouldNotRunRapidOffline() {
BlackDuckConnectionDetails blackDuckConnectionDetails = blackDuckConnectionDetails(true, VALID_URL);
BlackDuckDecision productDecision = new ProductDecider().decideBlackDuck(blackDuckConnectionDetails, BlackduckScanMode.RAPID);
assertSkipDecision(productDecision);
}
Aggregations