Class PropertiesFileSource
- java.lang.Object
-
- blog.softwaretester.properties.propertysource.PropertiesFileSource
-
- All Implemented Interfaces:
PropertySource
public final class PropertiesFileSource extends Object implements PropertySource
-
-
Constructor Summary
Constructors Constructor Description PropertiesFileSource(String propertiesFile)Constructor for the PropertiesFileSource.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,String>getProperties()Get a string map containing all properties from the respectivePropertySource.
-
-
-
Constructor Detail
-
PropertiesFileSource
public PropertiesFileSource(String propertiesFile)
Constructor for the PropertiesFileSource.- Parameters:
propertiesFile- The path to the properties file.
-
-
Method Detail
-
getProperties
public Map<String,String> getProperties()
Description copied from interface:PropertySourceGet a string map containing all properties from the respectivePropertySource.- Specified by:
getPropertiesin interfacePropertySource- Returns:
- The string map.
-
-