pull/7241/merge
Madhura Bhave 8 years ago
parent 6dd385898f
commit 7c71fdd9ff

@ -202,7 +202,7 @@ public class ConfigurationPropertySourcesTests {
}
@Test
public void environmentProperyExpansionShouldWorkWhenAttached() throws Exception {
public void environmentPropertyExpansionShouldWorkWhenAttached() throws Exception {
StandardEnvironment environment = new StandardEnvironment();
Map<String, Object> source = new LinkedHashMap<>();
source.put("fooBar", "Spring ${barBaz} ${bar-baz}");

@ -69,9 +69,9 @@ public class PropertySourceIterableConfigurationPropertySourceTests {
EnumerablePropertySource<?> propertySource = new MapPropertySource("test",
source);
TestPropertyMapper mapper = new TestPropertyMapper();
mapper.addFromProperySource("key1", "my.key1");
mapper.addFromProperySource("key2", "my.key2a", "my.key2b");
mapper.addFromProperySource("key4", "my.key4");
mapper.addFromPropertySource("key1", "my.key1");
mapper.addFromPropertySource("key2", "my.key2a", "my.key2b");
mapper.addFromPropertySource("key4", "my.key4");
PropertySourceIterableConfigurationPropertySource adapter = new PropertySourceIterableConfigurationPropertySource(
propertySource, mapper);
assertThat(adapter.iterator()).extracting(Object::toString)
@ -103,8 +103,8 @@ public class PropertySourceIterableConfigurationPropertySourceTests {
EnumerablePropertySource<?> propertySource = new MapPropertySource("test",
source);
TestPropertyMapper mapper = new TestPropertyMapper();
mapper.addFromProperySource("key1", "my.missing");
mapper.addFromProperySource("key2", "my.k-e-y");
mapper.addFromPropertySource("key1", "my.missing");
mapper.addFromPropertySource("key2", "my.k-e-y");
PropertySourceIterableConfigurationPropertySource adapter = new PropertySourceIterableConfigurationPropertySource(
propertySource, mapper);
ConfigurationPropertyName name = ConfigurationPropertyName.of("my.key");

@ -33,7 +33,7 @@ class TestPropertyMapper implements PropertyMapper {
private MultiValueMap<ConfigurationPropertyName, PropertyMapping> fromConfig = new LinkedMultiValueMap<>();
public void addFromProperySource(String from, String... to) {
public void addFromPropertySource(String from, String... to) {
for (String configurationPropertyName : to) {
this.fromSource.add(from, new PropertyMapping(from,
ConfigurationPropertyName.of(configurationPropertyName)));

Loading…
Cancel
Save