diff --git a/src/main/java/org/openrewrite/java/testing/junit5/AssertTrueInstanceofToAssertInstanceOf.java b/src/main/java/org/openrewrite/java/testing/junit5/AssertTrueInstanceofToAssertInstanceOf.java index 9a400efb4..eb7859fbf 100644 --- a/src/main/java/org/openrewrite/java/testing/junit5/AssertTrueInstanceofToAssertInstanceOf.java +++ b/src/main/java/org/openrewrite/java/testing/junit5/AssertTrueInstanceofToAssertInstanceOf.java @@ -36,6 +36,7 @@ public String getDescription() { return "Migration of JUnit4 (or potentially JUnit5) test case in form of assertTrue(x instanceof y) to assertInstanceOf(y.class, x)."; } + @Override public TreeVisitor<?, ExecutionContext> getVisitor() { return new JavaIsoVisitor<ExecutionContext>() { diff --git a/src/main/java/org/openrewrite/java/testing/junit5/RemoveDuplicateTestTemplates.java b/src/main/java/org/openrewrite/java/testing/junit5/RemoveDuplicateTestTemplates.java index d68870ffd..4e93433e9 100644 --- a/src/main/java/org/openrewrite/java/testing/junit5/RemoveDuplicateTestTemplates.java +++ b/src/main/java/org/openrewrite/java/testing/junit5/RemoveDuplicateTestTemplates.java @@ -29,14 +29,17 @@ public class RemoveDuplicateTestTemplates extends Recipe { private static final AnnotationMatcher TEST_ANNOTATION_MATCHER = new AnnotationMatcher("@org.junit.jupiter.api.Test"); private static final AnnotationMatcher REPEATED_TEST_ANNOTATION_MATCHER = new AnnotationMatcher("@org.junit.jupiter.api.RepeatedTest"); + @Override public String getDisplayName() { return "Remove duplicates uses of @TestTemplate implementations for a single method"; } + @Override public String getDescription() { return "Remove duplicates uses of @TestTemplate implementations for a single method."; } + @Override public TreeVisitor<?, ExecutionContext> getVisitor() { return Preconditions.check( new UsesType<>("org.junit.jupiter.api.RepeatedTest", false), diff --git a/src/test/java/org/openrewrite/java/testing/junit5/RemoveTryCatchFailBlocksTest.java b/src/test/java/org/openrewrite/java/testing/junit5/RemoveTryCatchFailBlocksTest.java index 933c56183..70afbcac4 100644 --- a/src/test/java/org/openrewrite/java/testing/junit5/RemoveTryCatchFailBlocksTest.java +++ b/src/test/java/org/openrewrite/java/testing/junit5/RemoveTryCatchFailBlocksTest.java @@ -27,6 +27,7 @@ @SuppressWarnings({"NumericOverflow", "divzero", "TryWithIdenticalCatches"}) class RemoveTryCatchFailBlocksTest implements RewriteTest { + @Override public void defaults(RecipeSpec spec) { spec .parser(JavaParser.fromJavaVersion()