Java org.springframework.mock.env MockPropertySource fields, constructors, methods, implement or subclass

Example usage for Java org.springframework.mock.env MockPropertySource fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.springframework.mock.env MockPropertySource.

The text is from its open source code.

Constructor

MockPropertySource()
Create a new MockPropertySource named #MOCK_PROPERTIES_PROPERTY_SOURCE_NAME that will maintain its own internal Properties instance.
MockPropertySource(String name)
Create a new MockPropertySource with the given name that will maintain its own internal Properties instance.
MockPropertySource(Properties properties)
Create a new MockPropertySource named #MOCK_PROPERTIES_PROPERTY_SOURCE_NAME and backed by the given Properties object.

Method

ObjectgetProperty(String name)
String[]getPropertyNames()
voidsetProperty(String name, Object value)
Set the given property on the underlying Properties object.