public class MUnitUserPropertiesManager extends Object
MUnitUserPropertiesManager allows to set the system properties
defined by the user for the execution of the MUnit tests. It also allows
to save and restore the state of the system properties on call.| Constructor and Description |
|---|
MUnitUserPropertiesManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
addApplicationProperty(String key,
String value) |
static void |
addUserPropertiesToSystem(Map<String,String> userProperties) |
static void |
addUserPropertyToSystem(String key,
String value) |
Map<String,String> |
getApplicationProperties() |
static boolean |
hasEnvironmentProperty(String key) |
static boolean |
hasSystemProperty(String key) |
static void |
loadPropertiesToSystem(Properties properties) |
static void |
restoreInitialSystemProperties() |
static void |
storeInitialSystemProperties() |
public static void storeInitialSystemProperties()
public static void restoreInitialSystemProperties()
public static void addUserPropertiesToSystem(Map<String,String> userProperties)
public static void loadPropertiesToSystem(Properties properties)
public static boolean hasSystemProperty(String key)
public static boolean hasEnvironmentProperty(String key)
Copyright © 2019. All rights reserved.