use of com.synopsys.integration.blackduck.api.generated.view.ProjectVersionPolicyStatusView in project blackduck-common by blackducksoftware.
the class PolicyStatusDescriptionTest method testMessageHandlesSingularComponents.
@Test
public void testMessageHandlesSingularComponents() {
ProjectVersionPolicyStatusView policyStatusItem = createProjectVersionPolicyStatusView();
PolicyStatusDescription policyStatusDescription = new PolicyStatusDescription(policyStatusItem);
String message = policyStatusDescription.getPolicyStatusMessage();
Assertions.assertEquals("Black Duck found: 4 components in violation (Policy Severity counts: 1 match has a severity level of TRIVIAL, 3 matches have a severity level of BLOCKER), 0 components in violation, but overridden, and 1 component not in violation.", message);
Assertions.assertNotNull(message);
}
Aggregations