程序包 org.springframework.mock.env
This package contains mock implementations of the
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.
类概要 类 说明 MockEnvironment SimpleConfigurableEnvironmentimplementation exposingMockEnvironment.setProperty(String, String)andMockEnvironment.withProperty(String, String)methods for testing purposes.MockPropertySource SimplePropertySourceimplementation for use in testing.