diff --git a/framework/codemodder-testutils/src/main/java/io/codemodder/testutils/CodemodTestMixin.java b/framework/codemodder-testutils/src/main/java/io/codemodder/testutils/CodemodTestMixin.java index 90b5ee2ca..1f2097e8d 100644 --- a/framework/codemodder-testutils/src/main/java/io/codemodder/testutils/CodemodTestMixin.java +++ b/framework/codemodder-testutils/src/main/java/io/codemodder/testutils/CodemodTestMixin.java @@ -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( @@ -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 codemods = loader.getCodemods(); assertThat(codemods.size(), equalTo(1));