open class MockEnvironment : AbstractEnvironment
Simple ConfigurableEnvironment implementation exposing #setProperty(String, String) and #withProperty(String, String) methods for testing purposes.
Author
Chris Beams
Author
Sam Brannen
Since
3.2
See Also
org.springframework.mock.env.MockPropertySource
MockEnvironment()
Create a new |
open fun setProperty(key: String, value: String): Unit
Set a property on the underlying MockPropertySource for this environment. |
|
open fun withProperty(key: String, value: String): MockEnvironment
Convenient synonym for |