|
|
@ -702,6 +702,14 @@ class ConfigurationPropertyNameTests {
|
|
|
|
assertThat(name2).isEqualTo(name1);
|
|
|
|
assertThat(name2).isEqualTo(name1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Test
|
|
|
|
|
|
|
|
void equalsSymmetricWhenNameMatchesDueToRemovalOfTrailingDashes() {
|
|
|
|
|
|
|
|
ConfigurationPropertyName n1 = ConfigurationPropertyName.of("foobar");
|
|
|
|
|
|
|
|
ConfigurationPropertyName n2 = ConfigurationPropertyName.of("foobar--");
|
|
|
|
|
|
|
|
assertThat(n1).isEqualTo(n2);
|
|
|
|
|
|
|
|
assertThat(n2).isEqualTo(n1);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Test
|
|
|
|
@Test
|
|
|
|
void isValidWhenValidShouldReturnTrue() {
|
|
|
|
void isValidWhenValidShouldReturnTrue() {
|
|
|
|
assertThat(ConfigurationPropertyName.isValid("")).isTrue();
|
|
|
|
assertThat(ConfigurationPropertyName.isValid("")).isTrue();
|
|
|
|