Skip to content

Commit 5324776

Browse files
committed
Fix tests
1 parent 77ff98c commit 5324776

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ dependencies {
7070
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:latest.release")
7171

7272
testImplementation("org.openrewrite:rewrite-test:latest.integration")
73+
testRuntimeOnly("org.openrewrite:rewrite-java-11:latest.integration")
7374

7475
testImplementation("org.assertj:assertj-core:latest.release")
7576
testImplementation("com.github.marschall:memoryfilesystem:latest.release")

src/test/kotlin/org/openrewrite/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<*>> = loadVisitors("org.openrewrite.mockito")
30+
override val visitors: Iterable<RefactorVisitor<*>> = loadVisitors("org.openrewrite.java.Mockito")
3131

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

src/test/kotlin/org/openrewrite/spring/SpringBootServletInitializerTest.kt renamed to src/test/kotlin/org/openrewrite/spring/boot2/SpringBootServletInitializerTest.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package org.openrewrite.spring
16+
package org.openrewrite.spring.boot2
1717

1818
import org.junit.jupiter.api.Test
1919
import org.openrewrite.RefactorVisitor
@@ -27,7 +27,7 @@ class SpringBootServletInitializerTest : RefactorVisitorTestForParser<J.Compilat
2727
override val parser: JavaParser = JavaParser.fromJavaVersion()
2828
.classpath("spring-boot")
2929
.build()
30-
override val visitors: Iterable<RefactorVisitor<*>> = loadVisitors("org.openrewrite.spring")
30+
override val visitors: Iterable<RefactorVisitor<*>> = loadVisitors("org.openrewrite.java.SpringBoot2Migration")
3131

3232
@Test
3333
fun changeType() = assertRefactored(

0 commit comments

Comments
 (0)