use of com.synopsys.integration.blackduck.api.generated.enumeration.UsageType in project hub-alert by blackducksoftware.
the class BlackDuckMessageAttributesUtilsTest method testGetUsageLinkableItemsNullUsageIncluded.
@Test
public void testGetUsageLinkableItemsNullUsageIncluded() {
ProjectVersionComponentVersionView projectVersionComponentView = new ProjectVersionComponentVersionView();
List<UsageType> listWithNull = new ArrayList<>();
listWithNull.add(UsageType.PREREQUISITE);
listWithNull.add(null);
projectVersionComponentView.setUsages(listWithNull);
String usage = BlackDuckMessageAttributesUtils.extractUsage(projectVersionComponentView);
assertEquals(UsageType.PREREQUISITE.prettyPrint(), usage);
}
Aggregations