Search in sources :

Example 1 with WaitableCodeLocationData

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);
}
Also used : SignatureScannerCodeLocationResult(com.synopsys.integration.detect.tool.signaturescanner.SignatureScannerCodeLocationResult) WaitableCodeLocationData(com.synopsys.integration.detect.workflow.blackduck.codelocation.WaitableCodeLocationData)

Example 2 with WaitableCodeLocationData

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);
}
Also used : WaitableCodeLocationData(com.synopsys.integration.detect.workflow.blackduck.codelocation.WaitableCodeLocationData)

Aggregations

WaitableCodeLocationData (com.synopsys.integration.detect.workflow.blackduck.codelocation.WaitableCodeLocationData)2 SignatureScannerCodeLocationResult (com.synopsys.integration.detect.tool.signaturescanner.SignatureScannerCodeLocationResult)1