Commit f21737a6 authored by Johnny Lim's avatar Johnny Lim Committed by Andy Wilkinson

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
parent a39251a3
......@@ -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
......
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