Skip to content

Commit

Permalink
improve assertions in Mockito1to5MigrationTest (#657)
Browse files Browse the repository at this point in the history
  • Loading branch information
sullis authored Dec 24, 2024
1 parent 90f6d63 commit 9993a67
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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]+:(?<version>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]+:(?<version>5\\.\\d+\\.\\d+)\"")
.actual())),
//language=java
java(
Expand Down

0 comments on commit 9993a67

Please sign in to comment.