Find AssertJ .extracting(...).contains(...) chains
ProprietaryAssertJ's .extracting("name") uses reflection; .extracting { it.name } (lambda form) is type-safe. Each match is a candidate for the lambda form, or for moving to a .allMatch { … } predicate when the collection-level invariant is what you actually want to assert.
org. openrewrite. kotlin. testing. FindAssertJChainUsingExtractingThenContains$KtRecipemod run . --recipe= 'org. openrewrite. kotlin. testing. FindAssertJChainUsingExtractingThenContains$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.