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