Merge pull request #11156 from Johnny Lim

* gh-11156:
  Polish "Remove a redundant dash in TestPropertyValues.Type"
  Remove a redundant dash in TestPropertyValues.Type
This commit is contained in:
Andy Wilkinson 2017-11-27 10:45:17 +00:00
commit aa04cb0d69
2 changed files with 3 additions and 2 deletions

View File

@ -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() {

View File

@ -58,7 +58,8 @@ 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