Package net.serenitybdd.core
Class SerenitySystemProperties
java.lang.Object
net.serenitybdd.core.SerenitySystemProperties
Convenience class used to get and set Serenity system properties.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetBooleanValue(ThucydidesSystemProperty property, boolean defaultValue) getIntegerValue(ThucydidesSystemProperty property, Integer defaultValue) static SerenitySystemPropertiesgetValue(ThucydidesSystemProperty property) getValue(ThucydidesSystemProperty property, String defaultValue) booleanisDefined(ThucydidesSystemProperty property) booleanisEmpty(ThucydidesSystemProperty property) voidsetValue(ThucydidesSystemProperty property, String value) Sets a Serenity system property to s specified value.
-
Constructor Details
-
SerenitySystemProperties
public SerenitySystemProperties()
-
-
Method Details
-
getProperties
-
getValue
-
isDefined
- Returns:
- True if a Serenity system property has been set.
-
getValue
-
isEmpty
- Returns:
- True if a given Serenity system property has been set to a non-empty value.
-
setValue
Sets a Serenity system property to s specified value.- Parameters:
property- the name of the propertyvalue- the property value
-
getIntegerValue
-
getBooleanValue
-