class SystemPropertyProjectListener : SystemPropertyListener, ProjectListener
Changes System Properties with chosen keys and values
This is a Listener for code that uses System Properties. It changes the specific keys from System.getProperties with the specified values, only during the execution of a test.
If the chosen key is in the properties, it will be changed according to mode. If the chosen key is not in the properties, it will be included.
After the execution of the test, the properties are set to what they were before.
ATTENTION: This code is susceptible to race conditions. If you attempt to change the environment while it was already changed, the result is inconsistent, as the System Properties Map is a single map.
<init> |
Changes System Properties with chosen keys and values SystemPropertyProjectListener(listOfPairs: List<Pair<String, String?>>, mode: OverrideMode = SetOrError)SystemPropertyProjectListener(key: String, value: String?, mode: OverrideMode = SetOrError)SystemPropertyProjectListener(properties: Properties, mode: OverrideMode = SetOrError)SystemPropertyProjectListener(newProperties: Map<String, String?>, mode: OverrideMode = SetOrError) |
afterProject |
fun afterProject(): Unit |
beforeProject |
fun beforeProject(): Unit |