From da780982e67f11c8b74e96fb7f7d819e88552dbe Mon Sep 17 00:00:00 2001 From: Tim te Beek Date: Wed, 4 Dec 2024 19:37:29 +0100 Subject: [PATCH] Update assertj-core-migration.adoc to fix link to AssertJ best practices recipe --- src/docs/asciidoc/user-guide/assertj-core-migration.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/docs/asciidoc/user-guide/assertj-core-migration.adoc b/src/docs/asciidoc/user-guide/assertj-core-migration.adoc index 8c4a2ae..80ac81f 100644 --- a/src/docs/asciidoc/user-guide/assertj-core-migration.adoc +++ b/src/docs/asciidoc/user-guide/assertj-core-migration.adoc @@ -115,7 +115,7 @@ The link:https://docs.openrewrite.org/recipes/java/testing/hamcrest/migratehamcr * Remove the Hamcrest `is(Matcher)` method * Add Gradle or Maven dependencies as needed -If you want to go even further, you can run the link:https://docs.openrewrite.org/recipes/java/testing/assertj/assertj[AssertJ best practices] recipe which will do all of the above plus: +If you want to go even further, you can run the link:https://docs.openrewrite.org/recipes/java/testing/assertj[AssertJ best practices] recipe which will do all of the above plus: * Migrate JUnit to AssertJ (e.g., changing `assertEquals()` to `assertThat().isEqualTo()`) * Simplify AssertJ chained assertions (e.g., `assertThat(foo.size()).isEqualTo(1)` would change to `assertThat(foo).hasSize(1)`)