Remove a redundant dash in TestPropertyValues.Type
Prior to this change, the dash was duplicated. For example "test--systemEnvironment". This commit removes the redundant dash and corrects the assertion in the test that should have caught the problem. See gh-11156
This commit is contained in:
parent
a39251a3df
commit
f21737a675
|
@ -227,7 +227,7 @@ public final class TestPropertyValues {
|
|||
|
||||
Type(Class<? extends MapPropertySource> sourceClass, String suffix) {
|
||||
this.sourceClass = sourceClass;
|
||||
this.suffix = (suffix == null ? null : "-" + suffix);
|
||||
this.suffix = suffix;
|
||||
}
|
||||
|
||||
public Class<? extends MapPropertySource> getSourceClass() {
|
||||
|
|
|
@ -58,7 +58,7 @@ public class TestPropertyValuesTests {
|
|||
Type.SYSTEM_ENVIRONMENT);
|
||||
assertThat(this.environment.getProperty("foo.bar")).isEqualTo("BAZ");
|
||||
assertThat(this.environment.getPropertySources().contains(
|
||||
"test-" + StandardEnvironment.SYSTEM_ENVIRONMENT_PROPERTY_SOURCE_NAME));
|
||||
"test-" + StandardEnvironment.SYSTEM_ENVIRONMENT_PROPERTY_SOURCE_NAME)).isTrue();
|
||||
}
|
||||
|
||||
@Test
|
||||
|
|
Loading…
Reference in New Issue