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();
|
||||
|
||||
@@ -558,7 +558,7 @@ public abstract class AbstractCacheAnnotationTests {
|
||||
Object r1 = service.multiConditionalCacheAndEvict(key);
|
||||
Object r3 = service.multiConditionalCacheAndEvict(key);
|
||||
|
||||
assertThat(!r1.equals(r3)).isTrue();
|
||||
assertThat(r1.equals(r3)).isFalse();
|
||||
assertThat(primary.get(key)).isNull();
|
||||
|
||||
Object key2 = 3;
|
||||
|
||||
Reference in New Issue
Block a user