Search in sources :

Example 1 with SarifProperties

use of com.checkmarx.flow.config.SarifProperties in project cx-flow by checkmarx-ltd.

the class SarifIssueTrackerTest method initWithNullPropertiesNullParameters.

@Test
public void initWithNullPropertiesNullParameters() {
    SarifProperties properties = new SarifProperties();
    properties.setFilePath("./cx.sarif");
    FilenameFormatter filenameFormatter = new SanitizingFilenameFormatter();
    SarifIssueTracker sarifIssueTracker = new SarifIssueTracker(properties, filenameFormatter);
    try {
        sarifIssueTracker.init(null, null);
        assert false;
    } catch (MachinaException e) {
        assert true;
    }
}
Also used : SarifProperties(com.checkmarx.flow.config.SarifProperties) MachinaException(com.checkmarx.flow.exception.MachinaException) SanitizingFilenameFormatter(com.checkmarx.flow.service.SanitizingFilenameFormatter) FilenameFormatter(com.checkmarx.flow.service.FilenameFormatter) SanitizingFilenameFormatter(com.checkmarx.flow.service.SanitizingFilenameFormatter) Test(org.junit.Test)

Example 2 with SarifProperties

use of com.checkmarx.flow.config.SarifProperties in project cx-flow by checkmarx-ltd.

the class SarifIssueTrackerTest method getInstance.

private SarifIssueTracker getInstance() {
    SarifProperties sarifProperties = new SarifProperties();
    FilenameFormatter filenameFormatter = new SanitizingFilenameFormatter();
    return new SarifIssueTracker(sarifProperties, filenameFormatter);
}
Also used : SarifProperties(com.checkmarx.flow.config.SarifProperties) SanitizingFilenameFormatter(com.checkmarx.flow.service.SanitizingFilenameFormatter) FilenameFormatter(com.checkmarx.flow.service.FilenameFormatter) SanitizingFilenameFormatter(com.checkmarx.flow.service.SanitizingFilenameFormatter)

Aggregations

SarifProperties (com.checkmarx.flow.config.SarifProperties)2 FilenameFormatter (com.checkmarx.flow.service.FilenameFormatter)2 SanitizingFilenameFormatter (com.checkmarx.flow.service.SanitizingFilenameFormatter)2 MachinaException (com.checkmarx.flow.exception.MachinaException)1 Test (org.junit.Test)1