use of com.synopsys.integration.alert.api.channel.convert.mock.MockChannelMessageFormatter in project hub-alert by blackducksoftware.
the class BomComponentDetailConverterTest method callGatherAttributeStrings.
public List<String> callGatherAttributeStrings() {
MockChannelMessageFormatter mockChannelMessageFormatter = new MockChannelMessageFormatter(Integer.MAX_VALUE);
BomComponentDetailConverter bomComponentDetailConverter = new BomComponentDetailConverter(mockChannelMessageFormatter);
return bomComponentDetailConverter.gatherAttributeStrings(BOM_COMPONENT_DETAILS);
}
use of com.synopsys.integration.alert.api.channel.convert.mock.MockChannelMessageFormatter in project hub-alert by blackducksoftware.
the class LinkableItemConverterTest method callConvertToString.
private String callConvertToString(boolean bold) {
MockChannelMessageFormatter formatter = new MockChannelMessageFormatter(Integer.MAX_VALUE);
LinkableItemConverter linkableItemConverter = new LinkableItemConverter(formatter);
return linkableItemConverter.convertToString(TEST_LINKABLE_ITEM, bold);
}
use of com.synopsys.integration.alert.api.channel.convert.mock.MockChannelMessageFormatter in project hub-alert by blackducksoftware.
the class LinkableItemConverterTest method callConvertToStringWithoutLink.
private String callConvertToStringWithoutLink(boolean bold) {
MockChannelMessageFormatter formatter = new MockChannelMessageFormatter(Integer.MAX_VALUE);
LinkableItemConverter linkableItemConverter = new LinkableItemConverter(formatter);
return linkableItemConverter.convertToStringWithoutLink(TEST_LINKABLE_ITEM, bold);
}
use of com.synopsys.integration.alert.api.channel.convert.mock.MockChannelMessageFormatter in project hub-alert by blackducksoftware.
the class BomComponentDetailConverterTest method callGatherAbstractBomComponentSectionPieces.
private List<String> callGatherAbstractBomComponentSectionPieces() {
MockChannelMessageFormatter mockChannelMessageFormatter = new MockChannelMessageFormatter(Integer.MAX_VALUE);
BomComponentDetailConverter bomComponentDetailConverter = new BomComponentDetailConverter(mockChannelMessageFormatter);
return bomComponentDetailConverter.gatherAbstractBomComponentSectionPieces(BOM_COMPONENT_DETAILS);
}
use of com.synopsys.integration.alert.api.channel.convert.mock.MockChannelMessageFormatter in project hub-alert by blackducksoftware.
the class ComponentConcernConverterTest method callGatherComponentConcernSectionPieces.
private List<String> callGatherComponentConcernSectionPieces() {
ChannelMessageFormatter channelMessageFormatter = new MockChannelMessageFormatter(Integer.MAX_VALUE);
ComponentConcernConverter componentConcernConverter = new ComponentConcernConverter(channelMessageFormatter);
List<ComponentConcern> componentConcerns = createALotOfComponentConcerns();
return componentConcernConverter.gatherComponentConcernSectionPieces(componentConcerns);
}
Aggregations