Prefer MapAssert#containsEntry(Object, Object) over more contrived alternatives
Apache 2.0Warning: this rewrite changes behavior when value is null
and key is absent from the map: the original code passes (as Map#get returns
null for absent keys), while MapAssert#containsEntry(Object, Object) requires
the key to be explicitly present.
tech. picnic. errorprone. refasterrules. AssertJRulesRecipes$AssertThatContainsEntryRecipemod run . --recipe= 'tech. picnic. errorprone. refasterrules. AssertJRulesRecipes$AssertThatContainsEntryRecipe'Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.