From 7c71fdd9ff11ca53a2e936dc947e5009d61b4bb2 Mon Sep 17 00:00:00 2001 From: Madhura Bhave Date: Fri, 5 May 2017 17:07:28 -0700 Subject: [PATCH] Fix typo --- .../source/ConfigurationPropertySourcesTests.java | 2 +- ...SourceIterableConfigurationPropertySourceTests.java | 10 +++++----- .../context/properties/source/TestPropertyMapper.java | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/spring-boot/src/test/java/org/springframework/boot/context/properties/source/ConfigurationPropertySourcesTests.java b/spring-boot/src/test/java/org/springframework/boot/context/properties/source/ConfigurationPropertySourcesTests.java index 00437f3185d..c8c3981ce8b 100644 --- a/spring-boot/src/test/java/org/springframework/boot/context/properties/source/ConfigurationPropertySourcesTests.java +++ b/spring-boot/src/test/java/org/springframework/boot/context/properties/source/ConfigurationPropertySourcesTests.java @@ -202,7 +202,7 @@ public class ConfigurationPropertySourcesTests { } @Test - public void environmentProperyExpansionShouldWorkWhenAttached() throws Exception { + public void environmentPropertyExpansionShouldWorkWhenAttached() throws Exception { StandardEnvironment environment = new StandardEnvironment(); Map source = new LinkedHashMap<>(); source.put("fooBar", "Spring ${barBaz} ${bar-baz}"); diff --git a/spring-boot/src/test/java/org/springframework/boot/context/properties/source/PropertySourceIterableConfigurationPropertySourceTests.java b/spring-boot/src/test/java/org/springframework/boot/context/properties/source/PropertySourceIterableConfigurationPropertySourceTests.java index 62884f3f52d..7a7d63dd26e 100644 --- a/spring-boot/src/test/java/org/springframework/boot/context/properties/source/PropertySourceIterableConfigurationPropertySourceTests.java +++ b/spring-boot/src/test/java/org/springframework/boot/context/properties/source/PropertySourceIterableConfigurationPropertySourceTests.java @@ -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"); diff --git a/spring-boot/src/test/java/org/springframework/boot/context/properties/source/TestPropertyMapper.java b/spring-boot/src/test/java/org/springframework/boot/context/properties/source/TestPropertyMapper.java index d6ed30f8bc9..fbae31e4d1d 100644 --- a/spring-boot/src/test/java/org/springframework/boot/context/properties/source/TestPropertyMapper.java +++ b/spring-boot/src/test/java/org/springframework/boot/context/properties/source/TestPropertyMapper.java @@ -33,7 +33,7 @@ class TestPropertyMapper implements PropertyMapper { private MultiValueMap 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)));