File tree Expand file tree Collapse file tree
src/test/java/org/openrewrite/java/migrate Expand file tree Collapse file tree Original file line number Diff line number Diff 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 (
You can’t perform that action at this time.
0 commit comments