Commit aa6a58d2 authored by Phillip Webb's avatar Phillip Webb

Merge branch '2.0.x'

parents c3316a12 7afde2ba
......@@ -600,6 +600,15 @@ public class ConfigurationPropertyNameTests {
assertThat((Object) n14).isNotEqualTo(n15);
}
@Test
public void equalsWhenStartsWith() {
// gh-14665
ConfigurationPropertyName n1 = ConfigurationPropertyName.of("my.sources[0].xame");
ConfigurationPropertyName n2 = ConfigurationPropertyName
.of("my.sources[0].xamespace");
assertThat(n1).isNotEqualTo(n2);
}
@Test
public void isValidWhenValidShouldReturnTrue() {
assertThat(ConfigurationPropertyName.isValid("")).isTrue();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment