Skip to content

Commit

Permalink
Inject Contrast finding XML files into test (#362)
Browse files Browse the repository at this point in the history
  • Loading branch information
nahsra committed Apr 23, 2024
1 parent 91773bb commit 86438ca
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,9 @@ private void verifyCodemod(
// Check for any a defectdojo
Path defectDojo = testResourceDir.resolve("defectdojo.json");

// Check for Contrast
Path contrastXml = testResourceDir.resolve("contrast.xml");

// run the codemod
CodemodLoader loader =
new CodemodLoader(
Expand All @@ -137,7 +140,7 @@ private void verifyCodemod(
List.of(),
Files.exists(sonarJson) ? sonarJson : null,
Files.exists(defectDojo) ? defectDojo : null,
null);
Files.exists(contrastXml) ? contrastXml : null);

List<CodemodIdPair> codemods = loader.getCodemods();
assertThat(codemods.size(), equalTo(1));
Expand Down

0 comments on commit 86438ca

Please sign in to comment.