diff --git a/rewrite-maven/src/test/java/org/openrewrite/maven/AddParentPomTest.java b/rewrite-maven/src/test/java/org/openrewrite/maven/AddParentPomTest.java
index b2feb3ebfc4..5d8901796be 100644
--- a/rewrite-maven/src/test/java/org/openrewrite/maven/AddParentPomTest.java
+++ b/rewrite-maven/src/test/java/org/openrewrite/maven/AddParentPomTest.java
@@ -298,63 +298,15 @@ void multiModuleRelativePathChangeChildrens() {
);
}
- @Test
- void addParentWithVersionPattern() {
- rewriteRun(
- spec -> spec.recipe(new AddParentPom(
- "org.springframework.boot",
- "spring-boot-starter-parent",
- null,
- null,
- "~1.5",
- null
- )),
- pomXml(
- """
-
- 4.0.0
-
-
- org.springframework.boot
- spring-boot-starter-parent
- 1.5.12.RELEASE
-
-
-
- com.mycompany.app
- my-app
- 1
-
- """,
- """
-
- 4.0.0
-
-
- org.springframework.boot
- spring-boot-starter-parent
- 1.5.22.RELEASE
-
-
-
- com.mycompany.app
- my-app
- 1
-
- """
- )
- );
- }
-
@Test
void wildcardVersion() {
rewriteRun(
spec -> spec.recipe(new AddParentPom(
"org.springframework.boot",
"spring-boot-starter-parent",
+ "~1.5",
null,
null,
- "~1.5",
null
)),
pomXml(
@@ -362,13 +314,6 @@ void wildcardVersion() {
4.0.0
-
- org.springframework.boot
- spring-boot-starter-parent
- 1.5.12.RELEASE
-
-
-
com.mycompany.app
my-app
1
@@ -377,12 +322,10 @@ void wildcardVersion() {
"""
4.0.0
-
org.springframework.boot
spring-boot-starter-parent
1.5.22.RELEASE
-
com.mycompany.app
@@ -589,8 +532,10 @@ void shouldNotAddToDependencyManagement() {
pomXml(
"""
- example
4.0.0
+ org.sample
+ sample
+ 1.0.0
2.387.3
@@ -627,7 +572,6 @@ void shouldNotAddToDependencyManagement() {
""",
"""
- example
4.0.0
org.jenkins-ci.plugins
@@ -635,6 +579,9 @@ void shouldNotAddToDependencyManagement() {
4.81
+ org.sample
+ sample
+ 1.0.0
2.387.3