diff --git a/src/main/resources/META-INF/rewrite/junit5.yml b/src/main/resources/META-INF/rewrite/junit5.yml index 7c64e302b..b0e20add4 100755 --- a/src/main/resources/META-INF/rewrite/junit5.yml +++ b/src/main/resources/META-INF/rewrite/junit5.yml @@ -41,7 +41,7 @@ visitors: targetType: org.junit.jupiter.api.Assumptions --- type: specs.openrewrite.org/v1beta/recipe -name: org.openrewrite.java.testing.junit5.migration +name: org.openrewrite.java.testing.JUnit5Migration include: - 'org.openrewrite.java.testing.junit5.*' diff --git a/src/main/resources/META-INF/rewrite/mockito.yml b/src/main/resources/META-INF/rewrite/mockito.yml index 11d59b60a..2ce3302a5 100644 --- a/src/main/resources/META-INF/rewrite/mockito.yml +++ b/src/main/resources/META-INF/rewrite/mockito.yml @@ -46,6 +46,6 @@ visitors: targetType: org.mockito.junit.MockitoJUnitRunner --- type: specs.openrewrite.org/v1beta/recipe -name: org.openrewrite.java.testing.Mockito +name: org.openrewrite.java.testing.Mockito1to3Migration include: - 'org.openrewrite.java.testing.mockito.*' diff --git a/src/test/kotlin/org/openrewrite/java/testing/junit5/JUnit5MigrationTest.kt b/src/test/kotlin/org/openrewrite/java/testing/junit5/JUnit5MigrationTest.kt index 55a3f688f..7a941c2d0 100644 --- a/src/test/kotlin/org/openrewrite/java/testing/junit5/JUnit5MigrationTest.kt +++ b/src/test/kotlin/org/openrewrite/java/testing/junit5/JUnit5MigrationTest.kt @@ -26,7 +26,7 @@ class JUnit5MigrationTest : RefactorVisitorTestForParser { override val parser: JavaParser = JavaParser.fromJavaVersion() .classpath("junit") .build() - override val visitors: Iterable> = loadVisitorsForTest("org.openrewrite.java.testing.junit5.migration") + override val visitors: Iterable> = loadVisitorsForTest("org.openrewrite.java.testing.JUnit5Migration") @Test fun changeBeforeToBeforeEach() = assertRefactored( diff --git a/src/test/kotlin/org/openrewrite/java/testing/mockito/MockitoUpgrade1To3Tests.kt b/src/test/kotlin/org/openrewrite/java/testing/mockito/MockitoUpgrade1To3Tests.kt index 982bf1977..5074c3a13 100644 --- a/src/test/kotlin/org/openrewrite/java/testing/mockito/MockitoUpgrade1To3Tests.kt +++ b/src/test/kotlin/org/openrewrite/java/testing/mockito/MockitoUpgrade1To3Tests.kt @@ -27,7 +27,7 @@ class MockitoUpgrade1To3Tests : RefactorVisitorTestForParser override val parser: JavaParser = JavaParser.fromJavaVersion() .classpath("mockito-all", "junit") .build() - override val visitors: Iterable> = loadVisitorsForTest("org.openrewrite.java.testing.Mockito") + override val visitors: Iterable> = loadVisitorsForTest("org.openrewrite.java.testing.Mockito1to3Migration") /** * Replace org.mockito.MockitoAnnotations.Mock with org.mockito.Mock