Skip to content

Commit a557813

Browse files
committed
Remove test that no longer makes sense
1 parent b1c3a4c commit a557813

File tree

1 file changed

+0
-70
lines changed

1 file changed

+0
-70
lines changed

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

Lines changed: 0 additions & 70 deletions
Original file line numberDiff line numberDiff 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(

0 commit comments

Comments
 (0)