Search in sources :

Example 6 with BlackDuckConnectivityResult

use of com.synopsys.integration.detect.lifecycle.boot.product.BlackDuckConnectivityResult in project synopsys-detect by blackducksoftware.

the class ProductBootTest method blackDuckConnectionFailureThrows.

@Test
public void blackDuckConnectionFailureThrows() {
    BlackDuckConnectivityResult connectivityResult = BlackDuckConnectivityResult.failure("Failed to connect");
    Assertions.assertThrows(DetectUserFriendlyException.class, () -> testBoot(BlackDuckDecision.runOnline(BlackduckScanMode.INTELLIGENT), new ProductBootOptions(false, false), connectivityResult));
}
Also used : BlackDuckConnectivityResult(com.synopsys.integration.detect.lifecycle.boot.product.BlackDuckConnectivityResult) ProductBootOptions(com.synopsys.integration.detect.lifecycle.boot.product.ProductBootOptions) Test(org.junit.jupiter.api.Test)

Aggregations

BlackDuckConnectivityResult (com.synopsys.integration.detect.lifecycle.boot.product.BlackDuckConnectivityResult)6 ProductBootOptions (com.synopsys.integration.detect.lifecycle.boot.product.ProductBootOptions)5 Test (org.junit.jupiter.api.Test)5 BlackDuckServerConfig (com.synopsys.integration.blackduck.configuration.BlackDuckServerConfig)3 ProductRunData (com.synopsys.integration.detect.lifecycle.run.data.ProductRunData)3 BlackDuckServicesFactory (com.synopsys.integration.blackduck.service.BlackDuckServicesFactory)2 PropertyConfiguration (com.synopsys.integration.configuration.config.PropertyConfiguration)1 SimplePathResolver (com.synopsys.integration.configuration.property.types.path.SimplePathResolver)1 MapPropertySource (com.synopsys.integration.configuration.source.MapPropertySource)1 PropertySource (com.synopsys.integration.configuration.source.PropertySource)1 DetectConfigurationFactory (com.synopsys.integration.detect.configuration.DetectConfigurationFactory)1 DetectPropertyConfiguration (com.synopsys.integration.detect.configuration.DetectPropertyConfiguration)1 BlackDuckConfigFactory (com.synopsys.integration.detect.configuration.connection.BlackDuckConfigFactory)1 SilentIntLogger (com.synopsys.integration.log.SilentIntLogger)1 ArrayList (java.util.ArrayList)1