Migrate Hamcrest assertions to AssertJ
MSALMigrate Hamcrest assertThat(..) to AssertJ Assertions.
org. openrewrite. java. testing. hamcrest. MigrateHamcrestToAssertJmod run . --recipe= org. openrewrite. java. testing. hamcrest. MigrateHamcrestToAssertJInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.
Recipe list
It runs these recipes, in this order.
- Add Gradle or Maven dependency
org.assertj:assertj-core:3.x - Use consistent Hamcrest matcher imports
- Migrate
anyOfandallOfHamcrest matchers to AssertJ - Migrate Hamcrest
hasPropertyto AssertJ - Migrate Hamcrest
everyItemto AssertJ - Migrate Hamcrest
hasItem(Matcher)to AssertJ - Migrate Hamcrest
is(Object)to AssertJ - Migrate Hamcrest
assertThat(String, boolean)to AssertJ - Migrate from Hamcrest
Matcherto AssertJ - Migrate from Hamcrest
Matcherto AssertJ - Migrate from Hamcrest
Matcherto AssertJ - Migrate from Hamcrest
Matcherto AssertJ - Migrate from Hamcrest
Matcherto AssertJ - Migrate from Hamcrest
Matcherto AssertJ - Migrate from Hamcrest
Matcherto AssertJ - Migrate from Hamcrest
Matcherto AssertJ - Migrate from Hamcrest
Matcherto AssertJ - Migrate from Hamcrest
Matcherto AssertJ - Migrate from Hamcrest
Matcherto AssertJ - Migrate from Hamcrest
Matcherto AssertJ - Migrate from Hamcrest
Matcherto AssertJ - Migrate from Hamcrest
Matcherto AssertJ - Migrate from Hamcrest
Matcherto AssertJ - Migrate from Hamcrest
Matcherto AssertJ - Migrate from Hamcrest
Matcherto AssertJ - Migrate from Hamcrest
Matcherto AssertJ - Migrate from Hamcrest
Matcherto AssertJ - Migrate from Hamcrest
Matcherto AssertJ - Migrate from Hamcrest
Matcherto AssertJ - Migrate from Hamcrest
Matcherto AssertJ - Migrate from Hamcrest
Matcherto AssertJ - Migrate from Hamcrest
Matcherto AssertJ - Migrate from Hamcrest
Matcherto AssertJ - Migrate from Hamcrest
Matcherto AssertJ - Migrate from Hamcrest
Matcherto AssertJ - Migrate from Hamcrest
Matcherto AssertJ - Migrate from Hamcrest
Matcherto AssertJ - Migrate from Hamcrest
Matcherto AssertJ - Migrate from Hamcrest
Matcherto AssertJ - Migrate from Hamcrest
Matcherto AssertJ - Migrate from Hamcrest
Matcherto AssertJ - Migrate from Hamcrest
Matcherto AssertJ - Migrate from Hamcrest
Matcherto AssertJ - Migrate from Hamcrest
Matcherto AssertJ - Migrate from Hamcrest
Matcherto AssertJ - Migrate from Hamcrest
Matcherto AssertJ - Migrate from Hamcrest
Matcherto AssertJ - Migrate from Hamcrest
Matcherto AssertJ - Migrate from Hamcrest
Matcherto AssertJ - Migrate from Hamcrest
Matcherto AssertJ - Migrate from Hamcrest
Matcherto AssertJ - Migrate from Hamcrest
Matcherto AssertJ - Migrate from Hamcrest
Matcherto AssertJ - Migrate from Hamcrest
Matcherto AssertJ - Migrate from Hamcrest
Matcherto AssertJ - Migrate from Hamcrest
Matcherto AssertJ - Migrate from Hamcrest
Matcherto AssertJ - Migrate from Hamcrest
Matcherto AssertJ - Migrate from Hamcrest
Matcherto AssertJ - Migrate from Hamcrest
Matcherto AssertJ - Migrate from Hamcrest
Matcherto AssertJ - Migrate from Hamcrest
Matcherto AssertJ - Migrate from Hamcrest
Matcherto AssertJ - Migrate from Hamcrest
Matcherto AssertJ - Migrate from Hamcrest
Matcherto AssertJ - Migrate Hamcrest
not(Matcher)to AssertJ - Migrate Hamcrest
not(Matcher)to AssertJ - Migrate Hamcrest
not(Matcher)to AssertJ - Migrate Hamcrest
not(Matcher)to AssertJ - Migrate Hamcrest
not(Matcher)to AssertJ - Migrate Hamcrest
not(Matcher)to AssertJ - Migrate Hamcrest
not(Matcher)to AssertJ - Migrate Hamcrest
not(Matcher)to AssertJ - Migrate Hamcrest
not(Matcher)to AssertJ - Migrate Hamcrest
not(Matcher)to AssertJ - Migrate Hamcrest
not(Matcher)to AssertJ - Migrate Hamcrest
not(Matcher)to AssertJ - Migrate Hamcrest
not(Matcher)to AssertJ - Migrate Hamcrest
not(Matcher)to AssertJ - Migrate Hamcrest
not(Matcher)to AssertJ - Migrate Hamcrest
not(Matcher)to AssertJ - Migrate Hamcrest
not(Matcher)to AssertJ - Migrate Hamcrest
not(Matcher)to AssertJ - Migrate Hamcrest
not(Matcher)to AssertJ - Migrate Hamcrest
not(Matcher)to AssertJ - Migrate Hamcrest
not(Matcher)to AssertJ - Migrate Hamcrest
not(Matcher)to AssertJ - Migrate Hamcrest
not(Matcher)to AssertJ - Migrate Hamcrest
not(Matcher)to AssertJ - Migrate Hamcrest
not(Matcher)to AssertJ - Migrate Hamcrest
not(Matcher)to AssertJ - Migrate Hamcrest
not(Matcher)to AssertJ