Skip to content

Commit aa6a58d

Browse files
committed
Merge branch '2.0.x'
2 parents c3316a1 + 7afde2b commit aa6a58d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

spring-boot-project/spring-boot/src/test/java/org/springframework/boot/context/properties/source/ConfigurationPropertyNameTests.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -600,6 +600,15 @@ public void equalsAndHashCode() {
600600
assertThat((Object) n14).isNotEqualTo(n15);
601601
}
602602

603+
@Test
604+
public void equalsWhenStartsWith() {
605+
// gh-14665
606+
ConfigurationPropertyName n1 = ConfigurationPropertyName.of("my.sources[0].xame");
607+
ConfigurationPropertyName n2 = ConfigurationPropertyName
608+
.of("my.sources[0].xamespace");
609+
assertThat(n1).isNotEqualTo(n2);
610+
}
611+
603612
@Test
604613
public void isValidWhenValidShouldReturnTrue() {
605614
assertThat(ConfigurationPropertyName.isValid("")).isTrue();

0 commit comments

Comments
 (0)