diff --git a/src/main/java/org/openrewrite/java/testing/arquillian/ReplaceArquillianInSequenceAnnotation.java b/src/main/java/org/openrewrite/java/testing/arquillian/ReplaceArquillianInSequenceAnnotation.java index 5dd34af5c..f83a6f912 100644 --- a/src/main/java/org/openrewrite/java/testing/arquillian/ReplaceArquillianInSequenceAnnotation.java +++ b/src/main/java/org/openrewrite/java/testing/arquillian/ReplaceArquillianInSequenceAnnotation.java @@ -69,7 +69,7 @@ public J.ClassDeclaration visitClassDeclaration(J.ClassDeclaration classDecl, Ex !service(AnnotationService.class).matches(updateCursor(cd), TEST_METHOD_ORDER_MATCHER)) { maybeAddImport(METHOD_ORDERER); maybeAddImport(TEST_METHOD_ORDER); - return JavaTemplate.builder("@TestMethodOrder(MethodOrderer.class)") + return JavaTemplate.builder("@TestMethodOrder(MethodOrderer.OrderAnnotation.class)") .imports(METHOD_ORDERER, TEST_METHOD_ORDER) .javaParser(JavaParser.fromJavaVersion().classpathFromResources(ctx, "junit-jupiter-api-5")) .build() diff --git a/src/test/java/org/openrewrite/java/testing/arquillian/ArquillianJUnit4ToArquillianJunit5Test.java b/src/test/java/org/openrewrite/java/testing/arquillian/ArquillianJUnit4ToArquillianJunit5Test.java index 81134ce80..cc9a0a706 100644 --- a/src/test/java/org/openrewrite/java/testing/arquillian/ArquillianJUnit4ToArquillianJunit5Test.java +++ b/src/test/java/org/openrewrite/java/testing/arquillian/ArquillianJUnit4ToArquillianJunit5Test.java @@ -65,7 +65,7 @@ void convert() { org.jboss.arquillian.junit5 arquillian-junit5-container - 1.9.1.Final + 1.9.2.Final test diff --git a/src/test/java/org/openrewrite/java/testing/arquillian/ReplaceArquillianInSequenceAnnotationTest.java b/src/test/java/org/openrewrite/java/testing/arquillian/ReplaceArquillianInSequenceAnnotationTest.java index ee41cac14..cf5ae2b9a 100644 --- a/src/test/java/org/openrewrite/java/testing/arquillian/ReplaceArquillianInSequenceAnnotationTest.java +++ b/src/test/java/org/openrewrite/java/testing/arquillian/ReplaceArquillianInSequenceAnnotationTest.java @@ -54,7 +54,7 @@ void first() {} import org.junit.jupiter.api.Order; import org.junit.jupiter.api.TestMethodOrder; - @TestMethodOrder(MethodOrderer.class) + @TestMethodOrder(MethodOrderer.OrderAnnotation.class) class A { @Order(2) void second() {}