Skip to content

Commit 999ee34

Browse files
committed
Rename mockito and junit recipes for consistency
1 parent beb6b19 commit 999ee34

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/main/resources/META-INF/rewrite/junit5.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ visitors:
4141
targetType: org.junit.jupiter.api.Assumptions
4242
---
4343
type: specs.openrewrite.org/v1beta/recipe
44-
name: org.openrewrite.java.testing.junit5.migration
44+
name: org.openrewrite.java.testing.JUnit5Migration
4545
include:
4646
- 'org.openrewrite.java.testing.junit5.*'
4747

src/main/resources/META-INF/rewrite/mockito.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,6 @@ visitors:
4646
targetType: org.mockito.junit.MockitoJUnitRunner
4747
---
4848
type: specs.openrewrite.org/v1beta/recipe
49-
name: org.openrewrite.java.testing.Mockito
49+
name: org.openrewrite.java.testing.Mockito1to3Migration
5050
include:
5151
- 'org.openrewrite.java.testing.mockito.*'

src/test/kotlin/org/openrewrite/java/testing/junit5/JUnit5MigrationTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class JUnit5MigrationTest : RefactorVisitorTestForParser<J.CompilationUnit> {
2626
override val parser: JavaParser = JavaParser.fromJavaVersion()
2727
.classpath("junit")
2828
.build()
29-
override val visitors: Iterable<RefactorVisitor<*>> = loadVisitorsForTest("org.openrewrite.java.testing.junit5.migration")
29+
override val visitors: Iterable<RefactorVisitor<*>> = loadVisitorsForTest("org.openrewrite.java.testing.JUnit5Migration")
3030

3131
@Test
3232
fun changeBeforeToBeforeEach() = assertRefactored(

src/test/kotlin/org/openrewrite/java/testing/mockito/MockitoUpgrade1To3Tests.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class MockitoUpgrade1To3Tests : RefactorVisitorTestForParser<J.CompilationUnit>
2727
override val parser: JavaParser = JavaParser.fromJavaVersion()
2828
.classpath("mockito-all", "junit")
2929
.build()
30-
override val visitors: Iterable<RefactorVisitor<*>> = loadVisitorsForTest("org.openrewrite.java.testing.Mockito")
30+
override val visitors: Iterable<RefactorVisitor<*>> = loadVisitorsForTest("org.openrewrite.java.testing.Mockito1to3Migration")
3131

3232
/**
3333
* Replace org.mockito.MockitoAnnotations.Mock with org.mockito.Mock

0 commit comments

Comments
 (0)