From 92385418ae62a52046f4fb73aadafddf47c19ee6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Nicoll?= Date: Mon, 22 Jul 2024 17:17:22 +0200 Subject: [PATCH] Polish assertion --- .../springframework/context/annotation/ImportSelectorTests.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-context/src/test/java/org/springframework/context/annotation/ImportSelectorTests.java b/spring-context/src/test/java/org/springframework/context/annotation/ImportSelectorTests.java index 6f2febdfa90..5f2fb5f9dcf 100644 --- a/spring-context/src/test/java/org/springframework/context/annotation/ImportSelectorTests.java +++ b/spring-context/src/test/java/org/springframework/context/annotation/ImportSelectorTests.java @@ -99,7 +99,7 @@ public class ImportSelectorTests { String[] beanNames = context.getBeanFactory().getBeanDefinitionNames(); assertThat(beanNames).endsWith("importSelectorTests.FilteredConfig", ImportedSelector2.class.getName(), "b"); - assertThat(beanNames).doesNotContain(Object.class.getName()); + assertThat(beanNames).doesNotContain("a", Object.class.getName(), "c"); } @Test