Skip to content

Commit 9f8b6e7

Browse files
timtebeekTeamModerneCopilot
authored
OpenRewrite recipe best practices (#997)
* OpenRewrite recipe best practices Use this link to re-run the recipe: https://app.moderne.io/recipes/org.openrewrite.recipes.rewrite.OpenRewriteRecipeBestPractices?organizationId=QUxML01vZGVybmUvTW9kZXJuZSArIE9wZW5SZXdyaXRl Co-authored-by: Moderne <team@moderne.io> * Update JUnit6BestPracticesTest.java --------- Co-authored-by: Moderne <team@moderne.io> Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
1 parent 10384e5 commit 9f8b6e7

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

src/test/java/org/openrewrite/java/testing/junit/JUnit6BestPracticesTest.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,7 @@ void test2() {
100100
</dependencyManagement>
101101
</project>
102102
""",
103-
spec -> spec.after(actual -> {
104-
return assertThat(actual)
105-
.containsPattern("<junit-jupiter\\.version>6\\.\\d+\\.\\d+</junit-jupiter\\.version>").actual();
106-
})
103+
spec -> spec.after(actual -> assertThat(actual).containsPattern("<junit-jupiter\\.version>6\\.\\d+\\.\\d+</junit-jupiter\\.version>").actual())
107104
)
108105
);
109106
}

0 commit comments

Comments
 (0)