From 07df1ce7d26121936e822557c0848f87261249e6 Mon Sep 17 00:00:00 2001 From: Juergen Hoeller Date: Wed, 25 Sep 2019 13:07:27 +0200 Subject: [PATCH] Update genericBeanDefinitionEquality test to AssertJ usage on master See gh-23593 --- .../beans/factory/support/BeanDefinitionTests.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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