Skip to content

Commit

Permalink
Fix assertion in XmlBeanFactoryTests
Browse files Browse the repository at this point in the history
  • Loading branch information
duan847 authored Jun 14, 2021
1 parent 4a13928 commit 3c8074b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -146,7 +146,7 @@ void refToSeparatePrototypeInstances() {
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();
}

0 comments on commit 3c8074b

Please sign in to comment.