From 033f1cc3036749f0335b833fb60fc723c5fd0c08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20Kr=C3=BCger?= Date: Tue, 21 Nov 2023 00:55:16 +0100 Subject: [PATCH 1/2] WIP --- .../sbm/build/api/Module_contains_Test.java | 2 +- .../impl/DependencyChangeHandlerTest.java | 4 +- .../project/buildfile/AddDependencyTest.java | 2 +- .../OpenRewriteMavenBuildFileTest.java | 4 +- .../sbm/{build => test}/util/PomBuilder.java | 2 +- .../upgrade_27_30/RemoveImageBannerTest.java | 2 +- ...tuatorEndpointsSanitizationHelperTest.java | 5 +- ...ndpointsSanitizationReportSectionTest.java | 2 +- ...dantMavenCompilerPluginPropertiesTest.java | 2 +- .../openrewrite/maven/MavenParserTest.java | 69 +++++++++++++++++++ .../RewriteProjectParserParityTest.java | 32 +++++++++ .../sbm/test/util/ParserParityTestHelper.java | 9 +++ 12 files changed, 119 insertions(+), 16 deletions(-) rename components/sbm-core/src/test/java/org/springframework/sbm/{build => test}/util/PomBuilder.java (99%) diff --git a/components/sbm-core/src/test/java/org/springframework/sbm/build/api/Module_contains_Test.java b/components/sbm-core/src/test/java/org/springframework/sbm/build/api/Module_contains_Test.java index 5a6dedeeb..60adca736 100644 --- a/components/sbm-core/src/test/java/org/springframework/sbm/build/api/Module_contains_Test.java +++ b/components/sbm-core/src/test/java/org/springframework/sbm/build/api/Module_contains_Test.java @@ -16,7 +16,7 @@ package org.springframework.sbm.build.api; import org.junit.jupiter.api.Test; -import org.springframework.sbm.build.util.PomBuilder; +import org.springframework.sbm.test.util.PomBuilder; import org.springframework.sbm.engine.context.ProjectContext; import org.springframework.sbm.project.resource.TestProjectContext; diff --git a/components/sbm-core/src/test/java/org/springframework/sbm/java/impl/DependencyChangeHandlerTest.java b/components/sbm-core/src/test/java/org/springframework/sbm/java/impl/DependencyChangeHandlerTest.java index a6750ce95..9a72a58f3 100644 --- a/components/sbm-core/src/test/java/org/springframework/sbm/java/impl/DependencyChangeHandlerTest.java +++ b/components/sbm-core/src/test/java/org/springframework/sbm/java/impl/DependencyChangeHandlerTest.java @@ -20,15 +20,13 @@ import org.springframework.sbm.build.api.BuildFile; import org.springframework.sbm.build.api.Dependency; import org.springframework.sbm.build.impl.OpenRewriteMavenBuildFile; -import org.springframework.sbm.build.util.PomBuilder; +import org.springframework.sbm.test.util.PomBuilder; import org.springframework.sbm.engine.context.ProjectContext; import org.springframework.sbm.engine.context.ProjectContextHolder; import org.springframework.sbm.parsers.RewriteExecutionContext; import org.springframework.sbm.parsers.JavaParserBuilder; import org.springframework.sbm.project.resource.TestProjectContext; -import static org.junit.jupiter.api.Assertions.*; - /** * @author Fabian Krüger */ diff --git a/components/sbm-core/src/test/java/org/springframework/sbm/project/buildfile/AddDependencyTest.java b/components/sbm-core/src/test/java/org/springframework/sbm/project/buildfile/AddDependencyTest.java index 8a012269e..2f3bc8c60 100644 --- a/components/sbm-core/src/test/java/org/springframework/sbm/project/buildfile/AddDependencyTest.java +++ b/components/sbm-core/src/test/java/org/springframework/sbm/project/buildfile/AddDependencyTest.java @@ -39,7 +39,7 @@ import org.springframework.sbm.build.api.BuildFile; import org.springframework.sbm.build.api.Dependency; import org.springframework.sbm.build.impl.RewriteMavenParser; -import org.springframework.sbm.build.util.PomBuilder; +import org.springframework.sbm.test.util.PomBuilder; import org.springframework.sbm.engine.context.ProjectContext; import org.springframework.sbm.engine.context.ProjectContextFactory; import org.springframework.sbm.engine.context.ProjectContextHolder; diff --git a/components/sbm-core/src/test/java/org/springframework/sbm/project/buildfile/OpenRewriteMavenBuildFileTest.java b/components/sbm-core/src/test/java/org/springframework/sbm/project/buildfile/OpenRewriteMavenBuildFileTest.java index 5242a80b4..f07ac66b3 100644 --- a/components/sbm-core/src/test/java/org/springframework/sbm/project/buildfile/OpenRewriteMavenBuildFileTest.java +++ b/components/sbm-core/src/test/java/org/springframework/sbm/project/buildfile/OpenRewriteMavenBuildFileTest.java @@ -28,17 +28,15 @@ import org.springframework.sbm.build.api.DependenciesChangedEvent; import org.springframework.sbm.build.api.Dependency; import org.springframework.sbm.build.api.Plugin; -import org.springframework.sbm.build.util.PomBuilder; +import org.springframework.sbm.test.util.PomBuilder; import org.springframework.sbm.build.impl.OpenRewriteMavenPlugin; import org.springframework.sbm.engine.context.ProjectContext; import org.springframework.sbm.engine.context.ProjectContextHolder; import org.springframework.sbm.java.api.Member; import org.springframework.sbm.java.impl.DependenciesChangedEventHandler; import org.springframework.sbm.java.impl.DependencyChangeHandler; -import org.springframework.sbm.java.impl.RewriteJavaParser; import org.springframework.sbm.parsers.RewriteExecutionContext; import org.springframework.sbm.parsers.JavaParserBuilder; -import org.springframework.sbm.project.resource.SbmApplicationProperties; import org.springframework.sbm.project.resource.TestProjectContext; import java.nio.file.Path; diff --git a/components/sbm-core/src/test/java/org/springframework/sbm/build/util/PomBuilder.java b/components/sbm-core/src/test/java/org/springframework/sbm/test/util/PomBuilder.java similarity index 99% rename from components/sbm-core/src/test/java/org/springframework/sbm/build/util/PomBuilder.java rename to components/sbm-core/src/test/java/org/springframework/sbm/test/util/PomBuilder.java index 0b630a352..67454c5f4 100644 --- a/components/sbm-core/src/test/java/org/springframework/sbm/build/util/PomBuilder.java +++ b/components/sbm-core/src/test/java/org/springframework/sbm/test/util/PomBuilder.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.springframework.sbm.build.util; +package org.springframework.sbm.test.util; import org.springframework.sbm.project.parser.DependencyHelper; diff --git a/components/sbm-recipes-boot-upgrade/src/test/java/org/springframework/sbm/boot/upgrade_27_30/RemoveImageBannerTest.java b/components/sbm-recipes-boot-upgrade/src/test/java/org/springframework/sbm/boot/upgrade_27_30/RemoveImageBannerTest.java index 595512dc7..985c07290 100644 --- a/components/sbm-recipes-boot-upgrade/src/test/java/org/springframework/sbm/boot/upgrade_27_30/RemoveImageBannerTest.java +++ b/components/sbm-recipes-boot-upgrade/src/test/java/org/springframework/sbm/boot/upgrade_27_30/RemoveImageBannerTest.java @@ -17,7 +17,7 @@ import org.junit.jupiter.api.Test; import org.springframework.sbm.boot.upgrade_27_30.report.yaml.SpringBootUpgradeReportActionDeserializer; -import org.springframework.sbm.build.util.PomBuilder; +import org.springframework.sbm.test.util.PomBuilder; import org.springframework.sbm.engine.context.ProjectContext; import org.springframework.sbm.engine.recipe.Recipe; import org.springframework.sbm.project.resource.TestProjectContext; diff --git a/components/sbm-recipes-boot-upgrade/src/test/java/org/springframework/sbm/boot/upgrade_27_30/report/helper/ActuatorEndpointsSanitizationHelperTest.java b/components/sbm-recipes-boot-upgrade/src/test/java/org/springframework/sbm/boot/upgrade_27_30/report/helper/ActuatorEndpointsSanitizationHelperTest.java index 3867150e1..71b3c1b22 100644 --- a/components/sbm-recipes-boot-upgrade/src/test/java/org/springframework/sbm/boot/upgrade_27_30/report/helper/ActuatorEndpointsSanitizationHelperTest.java +++ b/components/sbm-recipes-boot-upgrade/src/test/java/org/springframework/sbm/boot/upgrade_27_30/report/helper/ActuatorEndpointsSanitizationHelperTest.java @@ -15,15 +15,12 @@ */ package org.springframework.sbm.boot.upgrade_27_30.report.helper; -import org.assertj.core.api.Assertions; -import org.junit.jupiter.api.Nested; import org.junit.jupiter.api.Test; -import org.springframework.sbm.build.util.PomBuilder; +import org.springframework.sbm.test.util.PomBuilder; import org.springframework.sbm.engine.context.ProjectContext; import org.springframework.sbm.project.resource.TestProjectContext; import static org.assertj.core.api.Assertions.assertThat; -import static org.junit.jupiter.api.Assertions.*; /** * @author Fabian Krüger diff --git a/components/sbm-recipes-boot-upgrade/src/test/java/org/springframework/sbm/boot/upgrade_27_30/report/helper/ActuatorEndpointsSanitizationReportSectionTest.java b/components/sbm-recipes-boot-upgrade/src/test/java/org/springframework/sbm/boot/upgrade_27_30/report/helper/ActuatorEndpointsSanitizationReportSectionTest.java index 53055a508..91cd70547 100644 --- a/components/sbm-recipes-boot-upgrade/src/test/java/org/springframework/sbm/boot/upgrade_27_30/report/helper/ActuatorEndpointsSanitizationReportSectionTest.java +++ b/components/sbm-recipes-boot-upgrade/src/test/java/org/springframework/sbm/boot/upgrade_27_30/report/helper/ActuatorEndpointsSanitizationReportSectionTest.java @@ -18,7 +18,7 @@ import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; import org.springframework.sbm.boot.upgrade_27_30.report.SpringBootUpgradeReportTestSupport; -import org.springframework.sbm.build.util.PomBuilder; +import org.springframework.sbm.test.util.PomBuilder; import org.springframework.sbm.engine.context.ProjectContext; import org.springframework.sbm.project.resource.TestProjectContext; diff --git a/components/sbm-support-boot/src/test/java/org/springframework/sbm/boot/cleanup/actions/RemoveRedundantMavenCompilerPluginPropertiesTest.java b/components/sbm-support-boot/src/test/java/org/springframework/sbm/boot/cleanup/actions/RemoveRedundantMavenCompilerPluginPropertiesTest.java index 4edb01820..8d0ac7bed 100644 --- a/components/sbm-support-boot/src/test/java/org/springframework/sbm/boot/cleanup/actions/RemoveRedundantMavenCompilerPluginPropertiesTest.java +++ b/components/sbm-support-boot/src/test/java/org/springframework/sbm/boot/cleanup/actions/RemoveRedundantMavenCompilerPluginPropertiesTest.java @@ -24,7 +24,7 @@ import org.springframework.sbm.build.api.Module; import org.springframework.sbm.build.impl.OpenRewriteMavenPlugin; import org.springframework.sbm.build.migration.actions.OpenRewriteMavenBuildFileTestSupport; -import org.springframework.sbm.build.util.PomBuilder; +import org.springframework.sbm.test.util.PomBuilder; import org.springframework.sbm.engine.context.ProjectContext; import org.springframework.sbm.project.resource.TestProjectContext; diff --git a/sbm-support-rewrite/src/test/java/org/openrewrite/maven/MavenParserTest.java b/sbm-support-rewrite/src/test/java/org/openrewrite/maven/MavenParserTest.java index 758cbec33..0ba773d8e 100644 --- a/sbm-support-rewrite/src/test/java/org/openrewrite/maven/MavenParserTest.java +++ b/sbm-support-rewrite/src/test/java/org/openrewrite/maven/MavenParserTest.java @@ -15,14 +15,26 @@ */ package org.openrewrite.maven; +import org.intellij.lang.annotations.Language; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; import org.junitpioneer.jupiter.ExpectedToFail; import org.openrewrite.InMemoryExecutionContext; import org.openrewrite.SourceFile; +import org.openrewrite.maven.cache.LocalMavenArtifactCache; +import org.openrewrite.maven.cache.ReadOnlyLocalMavenArtifactCache; +import org.openrewrite.maven.internal.MavenPomDownloader; +import org.openrewrite.maven.tree.MavenResolutionResult; +import org.openrewrite.maven.tree.ResolvedDependency; +import org.openrewrite.maven.tree.Scope; +import org.openrewrite.maven.utilities.MavenArtifactDownloader; +import org.springframework.sbm.parsers.maven.RewriteMavenArtifactDownloader; import java.nio.file.Path; +import java.nio.file.Paths; +import java.util.ArrayList; import java.util.List; +import java.util.Objects; import java.util.regex.Pattern; import java.util.stream.Stream; @@ -33,6 +45,63 @@ * @author Fabian Krüger */ public class MavenParserTest { + + @Test + @DisplayName("parse pom with relocated dependency") + void parsePomWithRelocatedDependency() { + @Language("xml") + String pom = """ + + + 4.0.0 + + com.acme + app + 0.1.0-SNAPSHOT + + + + mysql + mysql-connector-java + 8.0.33 + + + + """; + + List parse = MavenParser.builder().build().parse(pom).toList(); + assertThat(parse).isNotNull(); + +// MavenArtifactDownloader mavenArtifactDownloader = new MavenArtifactDownloader(new ReadOnlyLocalMavenArtifactCache(Path.of(System.getProperty("user.home")).resolve(".m2/repository")), null, e -> { +// throw new RuntimeException(e); +// }); + + MavenResolutionResult mavenResolutionResult = parse.get(0).getMarkers().findFirst(MavenResolutionResult.class).get(); + List resolvedDependencies = mavenResolutionResult.getDependencies().get(Scope.Compile); + + MavenArtifactDownloader mavenArtifactDownloader = new RewriteMavenArtifactDownloader( + new LocalMavenArtifactCache(Paths.get(System.getProperty("user.home"), ".m2", "repository")) + .orElse( + new LocalMavenArtifactCache(Paths.get(System.getProperty("user.home"), ".rewrite", "cache", "artifacts") + ) + ), + null, + t -> {throw new RuntimeException(t);} + ); + List list = resolvedDependencies + // FIXME: 945 - deal with dependencies to projects in reactor + // + .stream() + .filter(rd -> rd.getRepository() != null) + .map(rd -> mavenArtifactDownloader.downloadArtifact(rd)) + .filter(Objects::nonNull) + .distinct() + .toList(); + + assertThat(list).isNotNull(); + } + @Test @DisplayName("Should Read .mvn/maven.config") @ExpectedToFail("See https://github.com/openrewrite/rewrite/issues/3409") diff --git a/sbm-support-rewrite/src/test/java/org/springframework/sbm/parsers/RewriteProjectParserParityTest.java b/sbm-support-rewrite/src/test/java/org/springframework/sbm/parsers/RewriteProjectParserParityTest.java index fe30cc39e..143073a8f 100644 --- a/sbm-support-rewrite/src/test/java/org/springframework/sbm/parsers/RewriteProjectParserParityTest.java +++ b/sbm-support-rewrite/src/test/java/org/springframework/sbm/parsers/RewriteProjectParserParityTest.java @@ -59,6 +59,38 @@ */ class RewriteProjectParserParityTest { + @Test + @DisplayName("pom") + void pom(@TempDir Path tempDir) { + + @Language("xml") + String pom = """ + + + 4.0.0 + + com.acme + app + 0.1.0-SNAPSHOT + + + + mysql + mysql-connector-java + 8.0.33 + + + + """; + TestProjectHelper.createTestProject(tempDir).withResources(new DummyResource(tempDir.resolve("pom.xml"), pom)).writeToFilesystem(); + ParserParityTestHelper + .scanProjectDir(tempDir) + .parseSequentially() + .verifyParity(); + + } + @Test @DisplayName("Parsing Simplistic Maven Project ") void parsingSimplisticMavenProject(@TempDir Path tempDir) throws GitAPIException { diff --git a/sbm-support-rewrite/src/test/java/org/springframework/sbm/test/util/ParserParityTestHelper.java b/sbm-support-rewrite/src/test/java/org/springframework/sbm/test/util/ParserParityTestHelper.java index 447b3920c..817f6ba93 100644 --- a/sbm-support-rewrite/src/test/java/org/springframework/sbm/test/util/ParserParityTestHelper.java +++ b/sbm-support-rewrite/src/test/java/org/springframework/sbm/test/util/ParserParityTestHelper.java @@ -30,6 +30,7 @@ import org.openrewrite.style.Style; import org.springframework.sbm.parsers.ParserProperties; import org.springframework.sbm.parsers.RewriteProjectParsingResult; +import org.springframework.util.StopWatch; import java.net.URI; import java.net.URISyntaxException; @@ -100,7 +101,15 @@ public void verifyParity(CustomParserResultParityChecker customParserResultParit expectedParserResult = result.expectedParsingResult(); actualParserResult = result.actualParsingResult(); } else { + StopWatch sw1 = new StopWatch("Parsers"); + sw1.start("actual"); actualParserResult = parserExecutionHelper.parseWithRewriteProjectParser(baseDir, parserProperties); + sw1.stop(); + System.out.println(sw1.shortSummary()); + + sw1.start("expectd"); + sw1.stop(); + System.out.println(sw1.shortSummary()); expectedParserResult = parserExecutionHelper.parseWithComparingParser(baseDir, parserProperties, executionContext); } From 6bd1c5c6f292ce25157537faae48da42d0c4c83a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20Kr=C3=BCger?= Date: Tue, 21 Nov 2023 10:44:15 +0100 Subject: [PATCH 2/2] Moved back PomBuilder to old package --- .../org/springframework/sbm/build/api/Module_contains_Test.java | 2 +- .../springframework/sbm/{test => build}/util/PomBuilder.java | 2 +- .../sbm/java/impl/DependencyChangeHandlerTest.java | 2 +- .../sbm/project/buildfile/AddDependencyTest.java | 2 +- .../sbm/project/buildfile/OpenRewriteMavenBuildFileTest.java | 2 +- .../sbm/boot/upgrade_27_30/RemoveImageBannerTest.java | 2 +- .../report/helper/ActuatorEndpointsSanitizationHelperTest.java | 2 +- .../helper/ActuatorEndpointsSanitizationReportSectionTest.java | 2 +- .../RemoveRedundantMavenCompilerPluginPropertiesTest.java | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) rename components/sbm-core/src/test/java/org/springframework/sbm/{test => build}/util/PomBuilder.java (99%) diff --git a/components/sbm-core/src/test/java/org/springframework/sbm/build/api/Module_contains_Test.java b/components/sbm-core/src/test/java/org/springframework/sbm/build/api/Module_contains_Test.java index 60adca736..5a6dedeeb 100644 --- a/components/sbm-core/src/test/java/org/springframework/sbm/build/api/Module_contains_Test.java +++ b/components/sbm-core/src/test/java/org/springframework/sbm/build/api/Module_contains_Test.java @@ -16,7 +16,7 @@ package org.springframework.sbm.build.api; import org.junit.jupiter.api.Test; -import org.springframework.sbm.test.util.PomBuilder; +import org.springframework.sbm.build.util.PomBuilder; import org.springframework.sbm.engine.context.ProjectContext; import org.springframework.sbm.project.resource.TestProjectContext; diff --git a/components/sbm-core/src/test/java/org/springframework/sbm/test/util/PomBuilder.java b/components/sbm-core/src/test/java/org/springframework/sbm/build/util/PomBuilder.java similarity index 99% rename from components/sbm-core/src/test/java/org/springframework/sbm/test/util/PomBuilder.java rename to components/sbm-core/src/test/java/org/springframework/sbm/build/util/PomBuilder.java index 67454c5f4..0b630a352 100644 --- a/components/sbm-core/src/test/java/org/springframework/sbm/test/util/PomBuilder.java +++ b/components/sbm-core/src/test/java/org/springframework/sbm/build/util/PomBuilder.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.springframework.sbm.test.util; +package org.springframework.sbm.build.util; import org.springframework.sbm.project.parser.DependencyHelper; diff --git a/components/sbm-core/src/test/java/org/springframework/sbm/java/impl/DependencyChangeHandlerTest.java b/components/sbm-core/src/test/java/org/springframework/sbm/java/impl/DependencyChangeHandlerTest.java index 9a72a58f3..c47f66c7b 100644 --- a/components/sbm-core/src/test/java/org/springframework/sbm/java/impl/DependencyChangeHandlerTest.java +++ b/components/sbm-core/src/test/java/org/springframework/sbm/java/impl/DependencyChangeHandlerTest.java @@ -20,7 +20,7 @@ import org.springframework.sbm.build.api.BuildFile; import org.springframework.sbm.build.api.Dependency; import org.springframework.sbm.build.impl.OpenRewriteMavenBuildFile; -import org.springframework.sbm.test.util.PomBuilder; +import org.springframework.sbm.build.util.PomBuilder; import org.springframework.sbm.engine.context.ProjectContext; import org.springframework.sbm.engine.context.ProjectContextHolder; import org.springframework.sbm.parsers.RewriteExecutionContext; diff --git a/components/sbm-core/src/test/java/org/springframework/sbm/project/buildfile/AddDependencyTest.java b/components/sbm-core/src/test/java/org/springframework/sbm/project/buildfile/AddDependencyTest.java index 2f3bc8c60..8a012269e 100644 --- a/components/sbm-core/src/test/java/org/springframework/sbm/project/buildfile/AddDependencyTest.java +++ b/components/sbm-core/src/test/java/org/springframework/sbm/project/buildfile/AddDependencyTest.java @@ -39,7 +39,7 @@ import org.springframework.sbm.build.api.BuildFile; import org.springframework.sbm.build.api.Dependency; import org.springframework.sbm.build.impl.RewriteMavenParser; -import org.springframework.sbm.test.util.PomBuilder; +import org.springframework.sbm.build.util.PomBuilder; import org.springframework.sbm.engine.context.ProjectContext; import org.springframework.sbm.engine.context.ProjectContextFactory; import org.springframework.sbm.engine.context.ProjectContextHolder; diff --git a/components/sbm-core/src/test/java/org/springframework/sbm/project/buildfile/OpenRewriteMavenBuildFileTest.java b/components/sbm-core/src/test/java/org/springframework/sbm/project/buildfile/OpenRewriteMavenBuildFileTest.java index f07ac66b3..e5f4da830 100644 --- a/components/sbm-core/src/test/java/org/springframework/sbm/project/buildfile/OpenRewriteMavenBuildFileTest.java +++ b/components/sbm-core/src/test/java/org/springframework/sbm/project/buildfile/OpenRewriteMavenBuildFileTest.java @@ -28,7 +28,7 @@ import org.springframework.sbm.build.api.DependenciesChangedEvent; import org.springframework.sbm.build.api.Dependency; import org.springframework.sbm.build.api.Plugin; -import org.springframework.sbm.test.util.PomBuilder; +import org.springframework.sbm.build.util.PomBuilder; import org.springframework.sbm.build.impl.OpenRewriteMavenPlugin; import org.springframework.sbm.engine.context.ProjectContext; import org.springframework.sbm.engine.context.ProjectContextHolder; diff --git a/components/sbm-recipes-boot-upgrade/src/test/java/org/springframework/sbm/boot/upgrade_27_30/RemoveImageBannerTest.java b/components/sbm-recipes-boot-upgrade/src/test/java/org/springframework/sbm/boot/upgrade_27_30/RemoveImageBannerTest.java index 985c07290..595512dc7 100644 --- a/components/sbm-recipes-boot-upgrade/src/test/java/org/springframework/sbm/boot/upgrade_27_30/RemoveImageBannerTest.java +++ b/components/sbm-recipes-boot-upgrade/src/test/java/org/springframework/sbm/boot/upgrade_27_30/RemoveImageBannerTest.java @@ -17,7 +17,7 @@ import org.junit.jupiter.api.Test; import org.springframework.sbm.boot.upgrade_27_30.report.yaml.SpringBootUpgradeReportActionDeserializer; -import org.springframework.sbm.test.util.PomBuilder; +import org.springframework.sbm.build.util.PomBuilder; import org.springframework.sbm.engine.context.ProjectContext; import org.springframework.sbm.engine.recipe.Recipe; import org.springframework.sbm.project.resource.TestProjectContext; diff --git a/components/sbm-recipes-boot-upgrade/src/test/java/org/springframework/sbm/boot/upgrade_27_30/report/helper/ActuatorEndpointsSanitizationHelperTest.java b/components/sbm-recipes-boot-upgrade/src/test/java/org/springframework/sbm/boot/upgrade_27_30/report/helper/ActuatorEndpointsSanitizationHelperTest.java index 71b3c1b22..773cf24cb 100644 --- a/components/sbm-recipes-boot-upgrade/src/test/java/org/springframework/sbm/boot/upgrade_27_30/report/helper/ActuatorEndpointsSanitizationHelperTest.java +++ b/components/sbm-recipes-boot-upgrade/src/test/java/org/springframework/sbm/boot/upgrade_27_30/report/helper/ActuatorEndpointsSanitizationHelperTest.java @@ -16,7 +16,7 @@ package org.springframework.sbm.boot.upgrade_27_30.report.helper; import org.junit.jupiter.api.Test; -import org.springframework.sbm.test.util.PomBuilder; +import org.springframework.sbm.build.util.PomBuilder; import org.springframework.sbm.engine.context.ProjectContext; import org.springframework.sbm.project.resource.TestProjectContext; diff --git a/components/sbm-recipes-boot-upgrade/src/test/java/org/springframework/sbm/boot/upgrade_27_30/report/helper/ActuatorEndpointsSanitizationReportSectionTest.java b/components/sbm-recipes-boot-upgrade/src/test/java/org/springframework/sbm/boot/upgrade_27_30/report/helper/ActuatorEndpointsSanitizationReportSectionTest.java index 91cd70547..53055a508 100644 --- a/components/sbm-recipes-boot-upgrade/src/test/java/org/springframework/sbm/boot/upgrade_27_30/report/helper/ActuatorEndpointsSanitizationReportSectionTest.java +++ b/components/sbm-recipes-boot-upgrade/src/test/java/org/springframework/sbm/boot/upgrade_27_30/report/helper/ActuatorEndpointsSanitizationReportSectionTest.java @@ -18,7 +18,7 @@ import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; import org.springframework.sbm.boot.upgrade_27_30.report.SpringBootUpgradeReportTestSupport; -import org.springframework.sbm.test.util.PomBuilder; +import org.springframework.sbm.build.util.PomBuilder; import org.springframework.sbm.engine.context.ProjectContext; import org.springframework.sbm.project.resource.TestProjectContext; diff --git a/components/sbm-support-boot/src/test/java/org/springframework/sbm/boot/cleanup/actions/RemoveRedundantMavenCompilerPluginPropertiesTest.java b/components/sbm-support-boot/src/test/java/org/springframework/sbm/boot/cleanup/actions/RemoveRedundantMavenCompilerPluginPropertiesTest.java index 8d0ac7bed..4edb01820 100644 --- a/components/sbm-support-boot/src/test/java/org/springframework/sbm/boot/cleanup/actions/RemoveRedundantMavenCompilerPluginPropertiesTest.java +++ b/components/sbm-support-boot/src/test/java/org/springframework/sbm/boot/cleanup/actions/RemoveRedundantMavenCompilerPluginPropertiesTest.java @@ -24,7 +24,7 @@ import org.springframework.sbm.build.api.Module; import org.springframework.sbm.build.impl.OpenRewriteMavenPlugin; import org.springframework.sbm.build.migration.actions.OpenRewriteMavenBuildFileTestSupport; -import org.springframework.sbm.test.util.PomBuilder; +import org.springframework.sbm.build.util.PomBuilder; import org.springframework.sbm.engine.context.ProjectContext; import org.springframework.sbm.project.resource.TestProjectContext;