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));
}
Aggregations