Search in sources :

Example 1 with MockChannelMessageFormatter

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);
}
Also used : MockChannelMessageFormatter(com.synopsys.integration.alert.api.channel.convert.mock.MockChannelMessageFormatter)

Example 2 with MockChannelMessageFormatter

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);
}
Also used : MockChannelMessageFormatter(com.synopsys.integration.alert.api.channel.convert.mock.MockChannelMessageFormatter)

Example 3 with MockChannelMessageFormatter

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);
}
Also used : MockChannelMessageFormatter(com.synopsys.integration.alert.api.channel.convert.mock.MockChannelMessageFormatter)

Example 4 with MockChannelMessageFormatter

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);
}
Also used : MockChannelMessageFormatter(com.synopsys.integration.alert.api.channel.convert.mock.MockChannelMessageFormatter)

Example 5 with MockChannelMessageFormatter

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);
}
Also used : MockChannelMessageFormatter(com.synopsys.integration.alert.api.channel.convert.mock.MockChannelMessageFormatter) MockChannelMessageFormatter(com.synopsys.integration.alert.api.channel.convert.mock.MockChannelMessageFormatter) ComponentConcern(com.synopsys.integration.alert.processor.api.extract.model.project.ComponentConcern)

Aggregations

MockChannelMessageFormatter (com.synopsys.integration.alert.api.channel.convert.mock.MockChannelMessageFormatter)8 LinkableItem (com.synopsys.integration.alert.common.message.model.LinkableItem)2 ProviderDetails (com.synopsys.integration.alert.processor.api.extract.model.ProviderDetails)2 SimpleMessage (com.synopsys.integration.alert.processor.api.extract.model.SimpleMessage)2 ProviderMessageHolder (com.synopsys.integration.alert.processor.api.extract.model.ProviderMessageHolder)1 ComponentConcern (com.synopsys.integration.alert.processor.api.extract.model.project.ComponentConcern)1 ProjectMessage (com.synopsys.integration.alert.processor.api.extract.model.project.ProjectMessage)1 Test (org.junit.jupiter.api.Test)1