Search in sources :

Example 1 with FilenameFormatter

use of com.checkmarx.flow.service.FilenameFormatter 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 FilenameFormatter

use of com.checkmarx.flow.service.FilenameFormatter in project cx-flow by checkmarx-ltd.

the class JsonIssueTrackerTest method getInstance.

private JsonIssueTracker getInstance() {
    JsonProperties jsonProperties = new JsonProperties();
    FilenameFormatter filenameFormatter = new SanitizingFilenameFormatter();
    return new JsonIssueTracker(jsonProperties, filenameFormatter);
}
Also used : SanitizingFilenameFormatter(com.checkmarx.flow.service.SanitizingFilenameFormatter) FilenameFormatter(com.checkmarx.flow.service.FilenameFormatter) SanitizingFilenameFormatter(com.checkmarx.flow.service.SanitizingFilenameFormatter)

Example 3 with FilenameFormatter

use of com.checkmarx.flow.service.FilenameFormatter 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

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