Update MockEnvironment / MockPropertySource types

Reflecting signature changes in getProperty() methods

git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@4245 50f2f4bb-b051-0410-bef5-90022cba6387
This commit is contained in:
Chris Beams
2011-05-06 18:57:41 +00:00
parent 0613ced0b2
commit 0b1f42ef66
4 changed files with 7 additions and 6 deletions
@@ -87,7 +87,7 @@ public class MockPropertySource extends PropertiesPropertySource {
/**
* Set the given property on the underlying {@link Properties} object.
*/
public void setProperty(String key, String value) {
public void setProperty(String key, Object value) {
this.source.put(key, value);
}
@@ -96,7 +96,7 @@ public class MockPropertySource extends PropertiesPropertySource {
* Useful for method chaining and fluent-style use.
* @return this {@link MockPropertySource} instance
*/
public MockPropertySource withProperty(String key, String value) {
public MockPropertySource withProperty(String key, Object value) {
this.setProperty(key, value);
return this;
}