spring-framework / org.springframework.mock.env / MockEnvironment / withProperty

withProperty

open fun withProperty(key: String, value: String): MockEnvironment

Convenient synonym for #setProperty that returns the current instance. Useful for method chaining and fluent-style use.

Return
this MockEnvironment instance

See Also
MockPropertySource#withProperty