File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed
main/resources/META-INF/rewrite
test/kotlin/org/openrewrite/java/testing Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ visitors:
41
41
targetType : org.junit.jupiter.api.Assumptions
42
42
---
43
43
type : specs.openrewrite.org/v1beta/recipe
44
- name : org.openrewrite.java.testing.junit5.migration
44
+ name : org.openrewrite.java.testing.JUnit5Migration
45
45
include :
46
46
- ' org.openrewrite.java.testing.junit5.*'
47
47
Original file line number Diff line number Diff line change @@ -46,6 +46,6 @@ visitors:
46
46
targetType : org.mockito.junit.MockitoJUnitRunner
47
47
---
48
48
type : specs.openrewrite.org/v1beta/recipe
49
- name : org.openrewrite.java.testing.Mockito
49
+ name : org.openrewrite.java.testing.Mockito1to3Migration
50
50
include :
51
51
- ' org.openrewrite.java.testing.mockito.*'
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ class JUnit5MigrationTest : RefactorVisitorTestForParser<J.CompilationUnit> {
26
26
override val parser: JavaParser = JavaParser .fromJavaVersion()
27
27
.classpath(" junit" )
28
28
.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 " )
30
30
31
31
@Test
32
32
fun changeBeforeToBeforeEach () = assertRefactored(
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ class MockitoUpgrade1To3Tests : RefactorVisitorTestForParser<J.CompilationUnit>
27
27
override val parser: JavaParser = JavaParser .fromJavaVersion()
28
28
.classpath(" mockito-all" , " junit" )
29
29
.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 " )
31
31
32
32
/* *
33
33
* Replace org.mockito.MockitoAnnotations.Mock with org.mockito.Mock
You can’t perform that action at this time.
0 commit comments