Hamcrest
Composite Recipes
Recipes that include further recipes, often including the individual recipes below.
- Migrate Hamcrest assertions to AssertJ
- Migrate Hamcrest assertions to JUnit Jupiter
- Use consistent Hamcrest matcher imports
Recipes
- Add
org.hamcrest:hamcrestif it is used. - Migrate Hamcrest
assertThat(boolean, Matcher)to AssertJ - Migrate Hamcrest
is(Object)to AssertJ - Migrate Hamcrest
not(Matcher)to AssertJ - Migrate
anyOfHamcrest Matcher to AssertJ - Migrate from Hamcrest
Matcherto AssertJ - Migrate from Hamcrest
Matcherto JUnit 5 - Migrate from Hamcrest
instanceOfmatcher to JUnit 5 - Remove Hamcrest
is(Matcher)