File tree Expand file tree Collapse file tree 1 file changed +0
-70
lines changed
src/test/java/org/openrewrite/java/migrate Expand file tree Collapse file tree 1 file changed +0
-70
lines changed Original file line number Diff line number Diff line change @@ -504,76 +504,6 @@ void test() throws Exception {
504504 );
505505 }
506506
507- @ Issue ("https://github.com/openrewrite/rewrite-migrate-java/pull/816" )
508- @ Test
509- void javaxAnnotationApiToJakarta () {
510- rewriteRun (
511- spec -> spec .parser (JavaParser .fromJavaVersion ().classpathFromResources (new InMemoryExecutionContext (), "javax.annotation-api-1.3.2" )),
512- version (
513- mavenProject ("project" ,
514- //language=xml
515- pomXml (
516- """
517- <project>
518- <modelVersion>4.0.0</modelVersion>
519- <groupId>com.mycompany.app</groupId>
520- <artifactId>my-app</artifactId>
521- <version>1</version>
522- <dependencies>
523- <dependency>
524- <groupId>javax.annotation</groupId>
525- <artifactId>javax.annotation-api</artifactId>
526- <version>1.3.2</version>
527- </dependency>
528- </dependencies>
529- </project>
530- """ ,
531- """
532- <project>
533- <modelVersion>4.0.0</modelVersion>
534- <groupId>com.mycompany.app</groupId>
535- <artifactId>my-app</artifactId>
536- <version>1</version>
537- <properties>
538- <maven.compiler.release>17</maven.compiler.release>
539- </properties>
540- <dependencies>
541- <dependency>
542- <groupId>jakarta.annotation</groupId>
543- <artifactId>jakarta.annotation-api</artifactId>
544- <version>2.0.0</version>
545- <scope>provided</scope>
546- </dependency>
547- </dependencies>
548- </project>
549- """
550- ),
551- //language=java
552- srcMainJava (
553- java (
554- """
555- import javax.annotation.PostConstruct;
556-
557- class A {
558- @PostConstruct
559- void init() {}
560- }
561- """ ,
562- """
563- import jakarta.annotation.PostConstruct;
564-
565- class A {
566- @PostConstruct
567- void init() {}
568- }
569- """
570- )
571- )
572- ),
573- 8 )
574- );
575- }
576-
577507 @ Test
578508 void upgradeSpotbugsPluginVersion () {
579509 rewriteRun (
You can’t perform that action at this time.
0 commit comments