Convert assertThat(!x).isTrue() to assertThat(x).isFalse()

Search:  assertThat\(\!(.+?)\)(.*?)\.isTrue\(\)

Replace: assertThat($1)$2.isFalse()

See gh-36504
This commit is contained in:
Sam Brannen
2026-03-20 10:54:13 +01:00
parent 4548f1ec66
commit 4357bbd31b
14 changed files with 38 additions and 38 deletions
@@ -944,11 +944,11 @@ class ClassUtilsTests {
}
private static void assertNotPublic(Member member) {
assertThat(!isPublic(member)).as("%s must be not be public", member).isTrue();
assertThat(isPublic(member)).as("%s must be not be public", member).isFalse();
}
private static void assertNotPublic(Class<?> clazz) {
assertThat(!isPublic(clazz)).as("%s must be not be public", clazz).isTrue();
assertThat(isPublic(clazz)).as("%s must be not be public", clazz).isFalse();
}
private static boolean isPublic(Class<?> clazz) {