Skip to content

Commit

Permalink
Rename mockito and junit recipes for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
sambsnyd committed Nov 3, 2020
1 parent beb6b19 commit 999ee34
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/main/resources/META-INF/rewrite/junit5.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.*'

2 changes: 1 addition & 1 deletion src/main/resources/META-INF/rewrite/mockito.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.*'
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class JUnit5MigrationTest : RefactorVisitorTestForParser<J.CompilationUnit> {
override val parser: JavaParser = JavaParser.fromJavaVersion()
.classpath("junit")
.build()
override val visitors: Iterable<RefactorVisitor<*>> = loadVisitorsForTest("org.openrewrite.java.testing.junit5.migration")
override val visitors: Iterable<RefactorVisitor<*>> = loadVisitorsForTest("org.openrewrite.java.testing.JUnit5Migration")

@Test
fun changeBeforeToBeforeEach() = assertRefactored(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class MockitoUpgrade1To3Tests : RefactorVisitorTestForParser<J.CompilationUnit>
override val parser: JavaParser = JavaParser.fromJavaVersion()
.classpath("mockito-all", "junit")
.build()
override val visitors: Iterable<RefactorVisitor<*>> = loadVisitorsForTest("org.openrewrite.java.testing.Mockito")
override val visitors: Iterable<RefactorVisitor<*>> = loadVisitorsForTest("org.openrewrite.java.testing.Mockito1to3Migration")

/**
* Replace org.mockito.MockitoAnnotations.Mock with org.mockito.Mock
Expand Down

0 comments on commit 999ee34

Please sign in to comment.