Clarify documentation in a few areas

Fixes gh-3527
This commit is contained in:
Dave Syer
2015-08-10 11:50:17 +01:00
parent a62ec1028c
commit 68af0a73ec
3 changed files with 12 additions and 9 deletions

View File

@@ -512,6 +512,8 @@ public class ConfigFileApplicationListenerTests {
ConfigurableApplicationContext context = application.run();
String property = context.getEnvironment().getProperty("the.property");
assertThat(property, equalTo("fromspecificlocation"));
property = context.getEnvironment().getProperty("my.property");
assertThat(property, equalTo("fromapplicationproperties"));
assertThat(context.getEnvironment(),
containsPropertySource("class path resource "
+ "[specificlocation.properties]"));