Search in sources :

Example 11 with BlackDuckConnectionDetails

use of com.synopsys.integration.detect.configuration.connection.BlackDuckConnectionDetails 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 BlackDuckConnectionDetails

use of com.synopsys.integration.detect.configuration.connection.BlackDuckConnectionDetails 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 BlackDuckConnectionDetails

use of com.synopsys.integration.detect.configuration.connection.BlackDuckConnectionDetails 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 BlackDuckConnectionDetails

use of com.synopsys.integration.detect.configuration.connection.BlackDuckConnectionDetails 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 BlackDuckConnectionDetails

use of com.synopsys.integration.detect.configuration.connection.BlackDuckConnectionDetails 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

BlackDuckConnectionDetails (com.synopsys.integration.detect.configuration.connection.BlackDuckConnectionDetails)22 BlackDuckDecision (com.synopsys.integration.detect.lifecycle.boot.decision.BlackDuckDecision)21 ProductDecider (com.synopsys.integration.detect.lifecycle.boot.decision.ProductDecider)21 Test (org.junit.jupiter.api.Test)21 BlackDuckSignatureScannerOptions (com.synopsys.integration.detect.tool.signaturescanner.BlackDuckSignatureScannerOptions)13 Path (java.nio.file.Path)2 BlackDuckConfigFactory (com.synopsys.integration.detect.configuration.connection.BlackDuckConfigFactory)1 SilentIntLogger (com.synopsys.integration.log.SilentIntLogger)1