diff --git a/src/test/java/org/openrewrite/java/testing/mockito/Mockito1to5MigrationTest.java b/src/test/java/org/openrewrite/java/testing/mockito/Mockito1to5MigrationTest.java index 7a719cda1..5edc4cfb6 100644 --- a/src/test/java/org/openrewrite/java/testing/mockito/Mockito1to5MigrationTest.java +++ b/src/test/java/org/openrewrite/java/testing/mockito/Mockito1to5MigrationTest.java @@ -62,9 +62,9 @@ void modifyMockitoDependencies() { } """, spec -> spec.after(buildGradleAfter -> assertThat(buildGradleAfter) - .containsPattern("org.apache.commons:commons-lang3:3.17.0") - .containsPattern("org.junit.jupiter:junit-jupiter-api:5.11.4") - .containsPattern("org\\.mockito:[\\D]+:(?5\\.\\d+\\.\\d+)") + .containsPattern("implementation\\(\"org.apache.commons:commons-lang3:3.17.0\"") + .containsPattern("testImplementation\\(\"org.junit.jupiter:junit-jupiter-api:5.11.4\"") + .containsPattern("testImplementation\\(\"org\\.mockito:[\\D]+:(?5\\.\\d+\\.\\d+)\"") .actual())), //language=java java(