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