From 3c8074b669e7a5b06755f5af241f1e2f003659e6 Mon Sep 17 00:00:00 2001 From: duan847 <554343346@qq.com> Date: Tue, 15 Jun 2021 00:49:55 +0800 Subject: [PATCH] Fix assertion in XmlBeanFactoryTests Closes gh-27058 --- .../springframework/beans/factory/xml/XmlBeanFactoryTests.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-context/src/test/java/org/springframework/beans/factory/xml/XmlBeanFactoryTests.java b/spring-context/src/test/java/org/springframework/beans/factory/xml/XmlBeanFactoryTests.java index a1e3f81940..6a9e9ede74 100644 --- a/spring-context/src/test/java/org/springframework/beans/factory/xml/XmlBeanFactoryTests.java +++ b/spring-context/src/test/java/org/springframework/beans/factory/xml/XmlBeanFactoryTests.java @@ -146,7 +146,7 @@ class XmlBeanFactoryTests { assertThat(emmasJenks != georgiasJenks).as("Emma and georgia think they have a different boyfriend").isTrue(); assertThat(emmasJenks.getName().equals("Andrew")).as("Emmas jenks has right name").isTrue(); assertThat(emmasJenks != xbf.getBean("jenks")).as("Emmas doesn't equal new ref").isTrue(); - assertThat(emmasJenks.getName().equals("Andrew")).as("Georgias jenks has right name").isTrue(); + assertThat(georgiasJenks.getName().equals("Andrew")).as("Georgias jenks has right name").isTrue(); assertThat(emmasJenks.equals(georgiasJenks)).as("They are object equal").isTrue(); assertThat(emmasJenks.equals(xbf.getBean("jenks"))).as("They object equal direct ref").isTrue(); }