diff --git a/spring-beans/src/test/java/org/springframework/beans/factory/support/BeanDefinitionTests.java b/spring-beans/src/test/java/org/springframework/beans/factory/support/BeanDefinitionTests.java index aa4841914e..a7af6e8f29 100644 --- a/spring-beans/src/test/java/org/springframework/beans/factory/support/BeanDefinitionTests.java +++ b/spring-beans/src/test/java/org/springframework/beans/factory/support/BeanDefinitionTests.java @@ -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