use of com.synopsys.integration.detect.workflow.blackduck.codelocation.WaitableCodeLocationData in project synopsys-detect by blackducksoftware.
the class CalculateWaitableSignatureScanCodeLocations method calculateWaitableCodeLocations.
public SignatureScannerCodeLocationResult calculateWaitableCodeLocations(NotificationTaskRange notificationTaskRange, List<SignatureScannerReport> reports) {
WaitableCodeLocationData waitableCodeLocationData = calculateWaitable(notificationTaskRange, reports);
Set<String> nonWaitableNames = calculateNonWaitable(reports);
return new SignatureScannerCodeLocationResult(waitableCodeLocationData, nonWaitableNames);
}
use of com.synopsys.integration.detect.workflow.blackduck.codelocation.WaitableCodeLocationData in project synopsys-detect by blackducksoftware.
the class CalculateWaitableSignatureScanCodeLocationsTest method assertWaited.
public void assertWaited(SignatureScannerCodeLocationResult result, Set<String> waited, int notificationCount) {
WaitableCodeLocationData waitable = result.getWaitableCodeLocationData();
Assertions.assertTrue(SetUtils.isEqualSet(waitable.getSuccessfulCodeLocationNames(), waited));
Assertions.assertEquals(waitable.getExpectedNotificationCount(), notificationCount);
}
Aggregations