use of com.synopsys.integration.detect.workflow.report.output.FormattedOperationOutput in project synopsys-detect by blackducksoftware.
the class DockerAssertions method successfulOperationStatusJson.
public void successfulOperationStatusJson(String operationKey) {
FormattedOutput statusJson = locateStatusJson();
Optional<FormattedOperationOutput> detector = statusJson.operations.stream().filter(it -> it.descriptionKey.equals(operationKey)).findFirst();
Assertions.assertTrue(detector.isPresent(), "Could not find required operation '" + operationKey + "' in status json detector list.");
Assertions.assertEquals("SUCCESS", detector.get().status);
}
Aggregations