Search in sources :

Example 1 with SecHubLicenseScanConfiguration

use of com.mercedesbenz.sechub.commons.model.SecHubLicenseScanConfiguration in project sechub by mercedes-benz.

the class LicenseScanProductExecutionServiceImplTest method isExecutionNecessary_necessary.

@Test
void isExecutionNecessary_necessary() {
    /* prepare */
    UUIDTraceLogID traceId = UUIDTraceLogID.traceLogID(UUID.randomUUID());
    SecHubExecutionContext context = mock(SecHubExecutionContext.class);
    SecHubConfiguration configuration = new SecHubConfiguration();
    SecHubLicenseScanConfiguration licenseScanConfig = new SecHubLicenseScanConfiguration();
    configuration.setLicenseScan(licenseScanConfig);
    /* execute + test */
    assertTrue(licenseScanServiceToTest.isExecutionNecessary(context, traceId, configuration));
}
Also used : UUIDTraceLogID(com.mercedesbenz.sechub.sharedkernel.UUIDTraceLogID) SecHubExecutionContext(com.mercedesbenz.sechub.sharedkernel.execution.SecHubExecutionContext) SecHubConfiguration(com.mercedesbenz.sechub.sharedkernel.configuration.SecHubConfiguration) SecHubLicenseScanConfiguration(com.mercedesbenz.sechub.commons.model.SecHubLicenseScanConfiguration) Test(org.junit.jupiter.api.Test)

Aggregations

SecHubLicenseScanConfiguration (com.mercedesbenz.sechub.commons.model.SecHubLicenseScanConfiguration)1 UUIDTraceLogID (com.mercedesbenz.sechub.sharedkernel.UUIDTraceLogID)1 SecHubConfiguration (com.mercedesbenz.sechub.sharedkernel.configuration.SecHubConfiguration)1 SecHubExecutionContext (com.mercedesbenz.sechub.sharedkernel.execution.SecHubExecutionContext)1 Test (org.junit.jupiter.api.Test)1