Skip to content

Commit d60016b

Browse files
committed
Drop UpgradeToJava17Test full-chain test; covered by AddLombokMapstructBindingTest
1 parent 316ce36 commit d60016b

1 file changed

Lines changed: 0 additions & 37 deletions

File tree

src/test/java/org/openrewrite/java/migrate/UpgradeToJava17Test.java

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -521,43 +521,6 @@ void upgradeSpotbugsPluginVersion() {
521521
);
522522
}
523523

524-
@Test
525-
void addsMapstructProcessorWhenLombokAndMapstructUsedWithoutAnnotationProcessorPaths() {
526-
rewriteRun(
527-
spec -> spec.cycles(3).expectedCyclesThatMakeChanges(2),
528-
pomXml(
529-
//language=xml
530-
"""
531-
<project>
532-
<modelVersion>4.0.0</modelVersion>
533-
<groupId>com.example</groupId>
534-
<artifactId>sample-service</artifactId>
535-
<version>1.0-SNAPSHOT</version>
536-
<dependencies>
537-
<dependency>
538-
<groupId>org.projectlombok</groupId>
539-
<artifactId>lombok</artifactId>
540-
<version>1.18.30</version>
541-
<scope>provided</scope>
542-
</dependency>
543-
<dependency>
544-
<groupId>org.mapstruct</groupId>
545-
<artifactId>mapstruct</artifactId>
546-
<version>1.5.5.Final</version>
547-
</dependency>
548-
</dependencies>
549-
</project>
550-
""",
551-
spec -> spec.after(actual ->
552-
assertThat(actual)
553-
.as("mapstruct-processor is added to the annotation processor paths, matching the upgraded mapstruct version")
554-
.containsPattern(Pattern.compile("<artifactId>mapstruct-processor</artifactId>\\s*<version>1\\.6\\.\\d+(\\.\\w+)?</version>"))
555-
.contains("<artifactId>lombok-mapstruct-binding</artifactId>")
556-
.actual())
557-
)
558-
);
559-
}
560-
561524
@Test
562525
void upgradeMapstructAndAnnotationPaths() {
563526
rewriteRun(

0 commit comments

Comments
 (0)