diff --git a/src/test/java/org/openrewrite/maven/RewriteRunIT.java b/src/test/java/org/openrewrite/maven/RewriteRunIT.java index d4a92897..fe2d745b 100644 --- a/src/test/java/org/openrewrite/maven/RewriteRunIT.java +++ b/src/test/java/org/openrewrite/maven/RewriteRunIT.java @@ -45,9 +45,9 @@ void multi_source_sets_project(MavenExecutionResult result) { .isSuccessful() .out() .warn() - .contains("Changes have been made to target/maven-it/org/openrewrite/maven/RewriteRunIT//multi_source_sets_project/project/src/integration-test/java/sample/AnotherCoolTest.java") - .contains("Changes have been made to target/maven-it/org/openrewrite/maven/RewriteRunIT//multi_source_sets_project/project/src/other/java/sample/SimplifyBooleanSample.java") - .contains("Changes have been made to target/maven-it/org/openrewrite/maven/RewriteRunIT//multi_source_sets_project/project/src/other/java/sample/CoolTest.java"); + .contains("Changes have been made to target/maven-it/org/openrewrite/maven/RewriteRunIT/multi_source_sets_project/project/src/integration-test/java/sample/AnotherCoolTest.java") + .contains("Changes have been made to target/maven-it/org/openrewrite/maven/RewriteRunIT/multi_source_sets_project/project/src/other/java/sample/SimplifyBooleanSample.java") + .contains("Changes have been made to target/maven-it/org/openrewrite/maven/RewriteRunIT/multi_source_sets_project/project/src/test/java/sample/CoolTest.java"); } @MavenTest diff --git a/src/test/resources-its/org/openrewrite/maven/RewriteRunIT/multi_source_sets_project/pom.xml b/src/test/resources-its/org/openrewrite/maven/RewriteRunIT/multi_source_sets_project/pom.xml index 6ab886b6..f3979514 100644 --- a/src/test/resources-its/org/openrewrite/maven/RewriteRunIT/multi_source_sets_project/pom.xml +++ b/src/test/resources-its/org/openrewrite/maven/RewriteRunIT/multi_source_sets_project/pom.xml @@ -36,6 +36,38 @@ + + + org.codehaus.mojo + build-helper-maven-plugin + 3.6.0 + + + add sources + generate-sources + + add-source + + + + src/other/java + + + + + add integration test sources + generate-test-sources + + add-test-source + + + + src/integration-test/java + + + + + diff --git a/src/test/resources-its/org/openrewrite/maven/RewriteRunIT/multi_source_sets_project/src/test/java/sample/CoolTest.java b/src/test/resources-its/org/openrewrite/maven/RewriteRunIT/multi_source_sets_project/src/test/java/sample/CoolTest.java index f4411a26..42fa2fb6 100644 --- a/src/test/resources-its/org/openrewrite/maven/RewriteRunIT/multi_source_sets_project/src/test/java/sample/CoolTest.java +++ b/src/test/resources-its/org/openrewrite/maven/RewriteRunIT/multi_source_sets_project/src/test/java/sample/CoolTest.java @@ -1,6 +1,5 @@ package sample; - import org.junit.jupiter.api.Test; import static org.junit.jupiter.api.Assertions.assertFalse;