diff --git a/spring-boot/src/test/java/org/springframework/boot/BeanDefinitionLoaderTests.java b/spring-boot/src/test/java/org/springframework/boot/BeanDefinitionLoaderTests.java index 3d851d85a3..f031562ff8 100644 --- a/spring-boot/src/test/java/org/springframework/boot/BeanDefinitionLoaderTests.java +++ b/spring-boot/src/test/java/org/springframework/boot/BeanDefinitionLoaderTests.java @@ -130,8 +130,8 @@ public class BeanDefinitionLoaderTests { BeanDefinitionLoader loader = new BeanDefinitionLoader(this.registry, MyComponentInPackageWithoutDot.class.getPackage().getName()); int loaded = loader.load(); - assertThat(loaded, equalTo(1)); - assertTrue(this.registry.containsBean("myComponentInPackageWithoutDot")); + assertThat(loaded).isEqualTo(1); + assertThat(this.registry.containsBean("myComponentInPackageWithoutDot")).isTrue(); } @Test