Find assertion-library smells

Proprietary

Search-only bundle for assertion-library specifics: Hamcrest's assertThat(actual, is(expected)) form, and AssertJ's reflective .extracting("name") followed by .contains(...).

org.openrewrite.kotlin.testing.FindAssertionLibrarySmells$KtRecipe
mod run . --recipe='org.openrewrite.kotlin.testing.FindAssertionLibrarySmells$KtRecipe'

Install 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.

  1. Find MatcherAssert.assertThat(...) (Hamcrest) calls
  2. Find AssertJ .extracting(...).contains(...) chains