Skip to content

Commit ea6c80b

Browse files
committed
Fix script links
1 parent 09cc4c1 commit ea6c80b

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/docs/asciidoc/user-guide/assertj-core-migration.adoc

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ The preferred approach is to use the provided migration scripts or OpenRewrite r
3434

3535
It is as simple as running one of the following scripts depending on which test framework you are using:
3636

37-
* {current-branch}/assertj-core/src/main/scripts/convert-junit-assertions-to-assertj.sh[JUnit 3/4 to AssertJ migration script]
38-
* {current-branch}/assertj-core/src/main/scripts/convert-junit5-assertions-to-assertj.sh[JUnit 5 to AssertJ migration script]
39-
* {current-branch}/assertj-core/src/main/scripts/convert-testng-assertions-to-assertj.sh[TestNG to AssertJ migration script]
37+
* {current-branch}/scripts/convert-junit-assertions-to-assertj.sh[JUnit 3/4 to AssertJ migration script]
38+
* {current-branch}/scripts/convert-junit5-assertions-to-assertj.sh[JUnit 5 to AssertJ migration script]
39+
* {current-branch}/scripts/convert-testng-assertions-to-assertj.sh[TestNG to AssertJ migration script]
4040

4141
Each shell script is based on the sed stream editor and regexps. It *recursively* looks at all `*Test.java` files and
4242
performs search and replace to convert assertions to AssertJ ones.
@@ -128,9 +128,10 @@ To learn more about how to run these recipes, please see the link:https://docs.o
128128

129129
Here's a list of find/replace expressions to change JUnit assertions into AssertJ assertions (don't forget to check the regex mode in your editor replace window).
130130

131-
This regexes described in this section are specific to JUnit 4 but you can easily adapt them for JUnit 5 or TestNG.
131+
These regexes described in this section are specific to JUnit 4, but you can easily adapt them for JUnit 5 or TestNG.
132132

133-
The order of find/replace is important to benefit from the most relevant AssertJ assertions. For example you should convert `assertEquals(0, myList.size())` to `assertThat(myList).isEmpty()` instead of `assertThat(myList.size()).isEqualTo(0)`.
133+
The order of find/replace is important to benefit from the most relevant AssertJ assertions.
134+
For example, you should convert `assertEquals(0, myList.size())` to `assertThat(myList).isEmpty()` instead of `assertThat(myList.size()).isEqualTo(0)`.
134135

135136

136137
===== Converting `assertEquals(0, myList.size())` to `assertThat(myList).isEmpty()`

0 commit comments

Comments
 (0)