Closes gh-5798
This commit is contained in:
Johnny Lim
2016-04-26 10:56:51 +09:00
committed by Stephane Nicoll
parent 34e3e3c820
commit db2092e27d
9 changed files with 15 additions and 15 deletions

View File

@@ -41,23 +41,23 @@ public class InfoProperties implements Iterable<InfoProperties.Entry> {
* @param entries the information to expose
*/
public InfoProperties(Properties entries) {
Assert.notNull(entries, "Properties must not be null");
Assert.notNull(entries, "Entries must not be null");
this.entries = copy(entries);
}
/**
* Return the value of the specified property or {@code null}.
* @param property the id of the property
* @param key the key of the property
* @return the property value
*/
public String get(String property) {
return this.entries.getProperty(property);
public String get(String key) {
return this.entries.getProperty(key);
}
/**
* Return the value of the specified property as a {@link Date} or {@code null} if the
* value is not a valid {@link Long} representation of an epoch time.
* @param key the id of the property
* @param key the key of the property
* @return the property value
*/
public Date getDate(String key) {

View File

@@ -539,7 +539,7 @@ public class ConfigFileApplicationListenerTests {
}
@Test
public void yamlSetsMultiProfilesWithWithespace() throws Exception {
public void yamlSetsMultiProfilesWithWhitespace() throws Exception {
this.initializer.setSearchNames("testsetmultiprofileswhitespace");
this.initializer.postProcessEnvironment(this.environment, this.application);
assertThat(this.environment.getActiveProfiles()).containsExactly("dev",