Environment and
 PropertySource
 abstractions introduced in Spring 3.1.See: Description
| Class | Description | 
|---|---|
| MockEnvironment | 
 Simple  
ConfigurableEnvironment implementation exposing
 MockEnvironment.setProperty(String, String) and MockEnvironment.withProperty(String, String)
 methods for testing purposes. | 
| MockPropertySource | 
 Simple  
PropertySource implementation for use in testing. | 
Environment and
 PropertySource
 abstractions introduced in Spring 3.1.
 These mocks are useful for developing out-of-container unit tests for code that depends on environment-specific properties.