From baee2bf6cfcd849af127a7c5561e62d5dfc860ff Mon Sep 17 00:00:00 2001 From: Kevin Scholten <93185956+kevin-scholten@users.noreply.github.com> Date: Thu, 16 May 2024 15:26:51 +0200 Subject: [PATCH] Added to notMatchers (#514) --- src/main/resources/META-INF/rewrite/hamcrest.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/resources/META-INF/rewrite/hamcrest.yml b/src/main/resources/META-INF/rewrite/hamcrest.yml index 997af9b0f..76dd930f4 100644 --- a/src/main/resources/META-INF/rewrite/hamcrest.yml +++ b/src/main/resources/META-INF/rewrite/hamcrest.yml @@ -275,6 +275,12 @@ recipeList: - org.openrewrite.java.testing.hamcrest.HamcrestNotMatcherToAssertJ: notMatcher: hasItem assertion: doesNotContain + - org.openrewrite.java.testing.hamcrest.HamcrestNotMatcherToAssertJ: + notMatcher: hasItems + assertion: doesNotContain + - org.openrewrite.java.testing.hamcrest.HamcrestNotMatcherToAssertJ: + notMatcher: empty + assertion: isNotEmpty # Add dependency if not already present - org.openrewrite.java.dependencies.AddDependency: