Skip to content

Commit cb26765

Browse files
author
Greg Adams
committed
change overly specific assertj assertThat methods to Assertions.assertThat
1 parent 68f53ad commit cb26765

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/main/resources/META-INF/rewrite/junit5-assertions-to-assertj.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,9 @@ recipeList:
2828
- org.openrewrite.java.testing.junitassertj.JUnitFailToAssertJFail
2929
- org.openrewrite.java.UseStaticImport:
3030
methodPattern: "org.assertj.core.api.Assertions *(..)"
31+
- org.openrewrite.java.ChangeMethodTargetToStatic
32+
methodPattern: "org.assertj.core.api.AssertionsForClassTypes.assertThat *(..)"
33+
fullyQualifiedTargetTypeName: "org.assertj.core.api.Assertions.assertThat"
34+
- org.openrewrite.java.ChangeMethodTargetToStatic
35+
methodPattern: "org.assertj.core.api.AssertionsForInterfaceTypes.assertThat *(..)"
36+
fullyQualifiedTargetTypeName: "org.assertj.core.api.Assertions.assertThat"

0 commit comments

Comments
 (0)