Search in sources :

Example 11 with ProductDecider

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);
}
Also used : ProductDecider(com.synopsys.integration.detect.lifecycle.boot.decision.ProductDecider) BlackDuckConnectionDetails(com.synopsys.integration.detect.configuration.connection.BlackDuckConnectionDetails) BlackDuckDecision(com.synopsys.integration.detect.lifecycle.boot.decision.BlackDuckDecision) Test(org.junit.jupiter.api.Test)

Example 12 with ProductDecider

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);
}
Also used : ProductDecider(com.synopsys.integration.detect.lifecycle.boot.decision.ProductDecider) BlackDuckConnectionDetails(com.synopsys.integration.detect.configuration.connection.BlackDuckConnectionDetails) BlackDuckDecision(com.synopsys.integration.detect.lifecycle.boot.decision.BlackDuckDecision) Test(org.junit.jupiter.api.Test)

Example 13 with ProductDecider

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);
}
Also used : ProductDecider(com.synopsys.integration.detect.lifecycle.boot.decision.ProductDecider) BlackDuckConnectionDetails(com.synopsys.integration.detect.configuration.connection.BlackDuckConnectionDetails) BlackDuckDecision(com.synopsys.integration.detect.lifecycle.boot.decision.BlackDuckDecision) Test(org.junit.jupiter.api.Test)

Example 14 with ProductDecider

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);
}
Also used : ProductDecider(com.synopsys.integration.detect.lifecycle.boot.decision.ProductDecider) BlackDuckConnectionDetails(com.synopsys.integration.detect.configuration.connection.BlackDuckConnectionDetails) BlackDuckDecision(com.synopsys.integration.detect.lifecycle.boot.decision.BlackDuckDecision) Test(org.junit.jupiter.api.Test)

Example 15 with ProductDecider

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);
}
Also used : ProductDecider(com.synopsys.integration.detect.lifecycle.boot.decision.ProductDecider) BlackDuckConnectionDetails(com.synopsys.integration.detect.configuration.connection.BlackDuckConnectionDetails) BlackDuckDecision(com.synopsys.integration.detect.lifecycle.boot.decision.BlackDuckDecision) Test(org.junit.jupiter.api.Test)

Aggregations

BlackDuckDecision (com.synopsys.integration.detect.lifecycle.boot.decision.BlackDuckDecision)22 ProductDecider (com.synopsys.integration.detect.lifecycle.boot.decision.ProductDecider)22 BlackDuckConnectionDetails (com.synopsys.integration.detect.configuration.connection.BlackDuckConnectionDetails)21 Test (org.junit.jupiter.api.Test)21 BlackDuckSignatureScannerOptions (com.synopsys.integration.detect.tool.signaturescanner.BlackDuckSignatureScannerOptions)13 Path (java.nio.file.Path)2 PropertyConfiguration (com.synopsys.integration.configuration.config.PropertyConfiguration)1 PathResolver (com.synopsys.integration.configuration.property.types.path.PathResolver)1 SimplePathResolver (com.synopsys.integration.configuration.property.types.path.SimplePathResolver)1 MapPropertySource (com.synopsys.integration.configuration.source.MapPropertySource)1 DetectConfigurationFactory (com.synopsys.integration.detect.configuration.DetectConfigurationFactory)1 DetectPropertyConfiguration (com.synopsys.integration.detect.configuration.DetectPropertyConfiguration)1 DetectUserFriendlyException (com.synopsys.integration.detect.configuration.DetectUserFriendlyException)1 DetectableOptionFactory (com.synopsys.integration.detect.configuration.DetectableOptionFactory)1 HelpJsonManager (com.synopsys.integration.detect.configuration.help.json.HelpJsonManager)1 HelpPrinter (com.synopsys.integration.detect.configuration.help.print.HelpPrinter)1 DeprecationResult (com.synopsys.integration.detect.configuration.validation.DeprecationResult)1 DetectConfigurationBootManager (com.synopsys.integration.detect.configuration.validation.DetectConfigurationBootManager)1 InteractiveManager (com.synopsys.integration.detect.interactive.InteractiveManager)1 RunDecision (com.synopsys.integration.detect.lifecycle.boot.decision.RunDecision)1