类的使用
org.springframework.mock.env.MockEnvironment
使用MockEnvironment的程序包 程序包 说明 org.springframework.mock.env This package contains mock implementations of theEnvironment
andPropertySource
abstractions introduced in Spring 3.1.org.springframework.mock.env中MockEnvironment的使用
返回MockEnvironment的org.springframework.mock.env中的方法 修饰符和类型 方法 说明 MockEnvironment
MockEnvironment. withProperty(String key, String value)
Convenient synonym forsetProperty(java.lang.String, java.lang.String)
that returns the current instance.