use of com.synopsys.integration.detect.lifecycle.boot.decision.ProductDecider in project synopsys-detect by blackducksoftware.
the class ProductDeciderTest method shouldRunIntelligentOnline.
@Test
public void shouldRunIntelligentOnline() {
BlackDuckConnectionDetails blackDuckConnectionDetails = blackDuckConnectionDetails(false, VALID_URL);
BlackDuckDecision productDecision = new ProductDecider().decideBlackDuck(blackDuckConnectionDetails, BlackduckScanMode.INTELLIGENT);
assertOnlineDecision(productDecision);
}
use of com.synopsys.integration.detect.lifecycle.boot.decision.ProductDecider in project synopsys-detect by blackducksoftware.
the class ProductDeciderTest method shouldRunRapidOnline.
@Test
public void shouldRunRapidOnline() {
BlackDuckConnectionDetails blackDuckConnectionDetails = blackDuckConnectionDetails(false, VALID_URL);
BlackDuckDecision productDecision = new ProductDecider().decideBlackDuck(blackDuckConnectionDetails, BlackduckScanMode.RAPID);
assertOnlineDecision(productDecision);
}
use of com.synopsys.integration.detect.lifecycle.boot.decision.ProductDecider in project synopsys-detect by blackducksoftware.
the class ProductDeciderTest method shouldNotRunIntelligentOnlineWhenMissingURL.
@Test
public void shouldNotRunIntelligentOnlineWhenMissingURL() {
BlackDuckConnectionDetails blackDuckConnectionDetails = blackDuckConnectionDetails(false, null);
BlackDuckDecision productDecision = new ProductDecider().decideBlackDuck(blackDuckConnectionDetails, BlackduckScanMode.INTELLIGENT);
assertSkipDecision(productDecision);
}
use of com.synopsys.integration.detect.lifecycle.boot.decision.ProductDecider in project synopsys-detect by blackducksoftware.
the class ProductDeciderTest method shouldNotRunRapidWhenMissingURLEvenOffline.
@Test
public void shouldNotRunRapidWhenMissingURLEvenOffline() {
BlackDuckConnectionDetails blackDuckConnectionDetails = blackDuckConnectionDetails(true, null);
BlackDuckDecision productDecision = new ProductDecider().decideBlackDuck(blackDuckConnectionDetails, BlackduckScanMode.RAPID);
assertSkipDecision(productDecision);
}
use of com.synopsys.integration.detect.lifecycle.boot.decision.ProductDecider in project synopsys-detect by blackducksoftware.
the class ProductDeciderTest method shouldNotRunRapidWhenMissingURL.
@Test
public void shouldNotRunRapidWhenMissingURL() {
BlackDuckConnectionDetails blackDuckConnectionDetails = blackDuckConnectionDetails(false, null);
BlackDuckDecision productDecision = new ProductDecider().decideBlackDuck(blackDuckConnectionDetails, BlackduckScanMode.RAPID);
assertSkipDecision(productDecision);
}
Aggregations