Replace assertThat(!x).isTrue() with assertThat(x).isFalse()

Search for   : assertThat\(!(.+)\).isTrue\(\)

Replace with : assertThat(\1).isFalse()
This commit is contained in:
Sam Brannen
2023-12-05 11:41:57 +01:00
parent 21560bccd3
commit ceba4162bb
7 changed files with 58 additions and 58 deletions

View File

@@ -725,7 +725,7 @@ class XmlBeanFactoryTests {
InitAndIB iib = (InitAndIB) xbf.getBean("init-and-ib");
assertThat(InitAndIB.constructed).isTrue();
assertThat(iib.afterPropertiesSetInvoked && iib.initMethodInvoked).isTrue();
assertThat(!iib.destroyed && !iib.customDestroyed).isTrue();
assertThat(iib.destroyed && !iib.customDestroyed).isFalse();
xbf.destroySingletons();
assertThat(iib.destroyed && iib.customDestroyed).isTrue();
xbf.destroySingletons();
@@ -746,7 +746,7 @@ class XmlBeanFactoryTests {
InitAndIB iib = (InitAndIB) xbf.getBean("ib-same-init");
assertThat(InitAndIB.constructed).isTrue();
assertThat(iib.afterPropertiesSetInvoked && !iib.initMethodInvoked).isTrue();
assertThat(!iib.destroyed && !iib.customDestroyed).isTrue();
assertThat(iib.destroyed && !iib.customDestroyed).isFalse();
xbf.destroySingletons();
assertThat(iib.destroyed && !iib.customDestroyed).isTrue();
xbf.destroySingletons();