Replace assertThat(!x).isTrue() with assertThat(x).isFalse()
Search for : assertThat\(!(.+)\).isTrue\(\) Replace with : assertThat(\1).isFalse()
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user