Skip to content

Commit fcc36ba

Browse files
committed
Updates to handle JavaType FQNs for inner and nested classes having $`.
1 parent a309fa8 commit fcc36ba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/org/openrewrite/java/testing/junit5/ParameterizedRunnerToParameterized.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ public class ParameterizedRunnerToParameterized extends Recipe {
3434
private static final AnnotationMatcher RUN_WITH_PARAMETERS = new AnnotationMatcher("@org.junit.runner.RunWith(org.junit.runners.Parameterized.class)");
3535
private static final AnnotationMatcher JUNIT_TEST = new AnnotationMatcher("@org.junit.Test");
3636
private static final AnnotationMatcher JUPITER_TEST = new AnnotationMatcher("@org.junit.jupiter.api.Test");
37-
private static final AnnotationMatcher PARAMETERS = new AnnotationMatcher("@org.junit.runners.Parameterized.Parameters");
38-
private static final AnnotationMatcher PARAMETER = new AnnotationMatcher("@org.junit.runners.Parameterized.Parameter");
37+
private static final AnnotationMatcher PARAMETERS = new AnnotationMatcher("@org.junit.runners.Parameterized$Parameters");
38+
private static final AnnotationMatcher PARAMETER = new AnnotationMatcher("@org.junit.runners.Parameterized$Parameter");
3939
private static final AnnotationMatcher PARAMETERIZED_TEST = new AnnotationMatcher("@org.junit.jupiter.params.ParameterizedTest");
4040

4141
private static final String PARAMETERS_ANNOTATION_ARGUMENTS = "parameters-annotation-args";

0 commit comments

Comments
 (0)