mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-17 16:39:29 +00:00
Convert assertThat(!x).isTrue() to assertThat(x).isFalse()
Search: assertThat\(\!(.+?)\)(.*?)\.isTrue\(\) Replace: assertThat($1)$2.isFalse() See gh-36504
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user