@@ -2656,26 +2656,27 @@ void hasParentWithParentShouldReturnParent() {
2656
2656
2657
2657
@ Test
2658
2658
void upgradeParentVersion () {
2659
- String pomXml =
2660
- "<?xml version=\" 1.0\" encoding=\" UTF-8\" ?>\n " +
2661
- "<project xmlns=\" http://maven.apache.org/POM/4.0.0\" xmlns:xsi=\" http://www.w3.org/2001/XMLSchema-instance\" \n " +
2662
- " xsi:schemaLocation=\" http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd\" >\n " +
2663
- " <modelVersion>4.0.0</modelVersion>\n " +
2664
- " <parent>\n " +
2665
- " <groupId>org.springframework.boot</groupId>\n " +
2666
- " <artifactId>spring-boot-starter-parent</artifactId>\n " +
2667
- " <version>2.4.12</version>\n " +
2668
- " <relativePath/> <!-- lookup parent from repository -->\n " +
2669
- " </parent>\n " +
2670
- " <groupId>com.example</groupId>\n " +
2671
- " <artifactId>spring-boot-24-to-25-example</artifactId>\n " +
2672
- " <version>0.0.1-SNAPSHOT</version>\n " +
2673
- " <name>spring-boot-2.4-to-2.5-example</name>\n " +
2674
- " <description>spring-boot-2.4-to-2.5-example</description>\n " +
2675
- " <properties>\n " +
2676
- " <java.version>11</java.version>\n " +
2677
- " </properties>\n " +
2678
- "</project>\n " ;
2659
+ String pomXml = """
2660
+ <?xml version="1.0" encoding="UTF-8"?>
2661
+ <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2662
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
2663
+ <modelVersion>4.0.0</modelVersion>
2664
+ <parent>
2665
+ <groupId>org.springframework.boot</groupId>
2666
+ <artifactId>spring-boot-starter-parent</artifactId>
2667
+ <version>2.4.12</version>
2668
+ <relativePath/> <!-- lookup parent from repository -->
2669
+ </parent>
2670
+ <groupId>com.example</groupId>
2671
+ <artifactId>spring-boot-24-to-25-example</artifactId>
2672
+ <version>0.0.1-SNAPSHOT</version>
2673
+ <name>spring-boot-2.4-to-2.5-example</name>
2674
+ <description>spring-boot-2.4-to-2.5-example</description>
2675
+ <properties>
2676
+ <java.version>11</java.version>
2677
+ </properties>
2678
+ </project>
2679
+ """ ;
2679
2680
2680
2681
BuildFile openRewriteMavenBuildFile = TestProjectContext .buildProjectContext ().withMavenRootBuildFileSource (pomXml ).build ().getBuildFile ();
2681
2682
0 commit comments