Browse Source

Fix assertion in XmlBeanFactoryTests

Closes gh-27058
pull/27075/head
duan847 3 years ago committed by GitHub
parent
commit
3c8074b669
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      spring-context/src/test/java/org/springframework/beans/factory/xml/XmlBeanFactoryTests.java

2
spring-context/src/test/java/org/springframework/beans/factory/xml/XmlBeanFactoryTests.java

@ -146,7 +146,7 @@ class XmlBeanFactoryTests { @@ -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();
}

Loading…
Cancel
Save