Update genericBeanDefinitionEquality test to AssertJ usage on master

See gh-23593
This commit is contained in:
Juergen Hoeller
2019-09-25 13:07:27 +02:00
parent bd70f10d2b
commit 07df1ce7d2

View File

@@ -126,13 +126,13 @@ public class BeanDefinitionTests {
otherBd.setAbstract(true);
otherBd.setLazyInit(true);
boolean condition1 = !bd.equals(otherBd);
assertTrue(condition1);
assertThat(condition1).isTrue();
boolean condition = !otherBd.equals(bd);
assertTrue(condition);
assertThat(condition).isTrue();
otherBd.setParentName("parent");
assertTrue(bd.equals(otherBd));
assertTrue(otherBd.equals(bd));
assertTrue(bd.hashCode() == otherBd.hashCode());
assertThat(bd.equals(otherBd)).isTrue();
assertThat(otherBd.equals(bd)).isTrue();
assertThat(bd.hashCode() == otherBd.hashCode()).isTrue();
}
@Test