spring-framework / org.springframework.mock.env / MockPropertySource / <init>

<init>

MockPropertySource()

Create a new MockPropertySource named {@value #MOCK_PROPERTIES_PROPERTY_SOURCE_NAME} that will maintain its own internal Properties instance.

MockPropertySource(name: String)

Create a new MockPropertySource with the given name that will maintain its own internal Properties instance.

Parameters

name - the name of the property source

MockPropertySource(properties: Properties)

Create a new MockPropertySource named {@value #MOCK_PROPERTIES_PROPERTY_SOURCE_NAME} and backed by the given Properties object.

Parameters

properties - the properties to use

MockPropertySource(name: String, properties: Properties)

Create a new MockPropertySource with the given name and backed by the given Properties object.

Parameters

name - the name of the property source

properties - the properties to use