Package net.serenitybdd.core
Class SerenitySystemProperties
java.lang.Object
net.serenitybdd.core.SerenitySystemProperties
public class SerenitySystemProperties
extends java.lang.Object
Convenience class used to get and set Serenity system properties.
-
Constructor Summary
Constructors Constructor Description SerenitySystemProperties()
-
Method Summary
Modifier and Type Method Description java.lang.Boolean
getBooleanValue(ThucydidesSystemProperty property, boolean defaultValue)
java.lang.Integer
getIntegerValue(ThucydidesSystemProperty property, java.lang.Integer defaultValue)
static SerenitySystemProperties
getProperties()
java.lang.String
getValue(ThucydidesSystemProperty property)
java.lang.String
getValue(ThucydidesSystemProperty property, java.lang.String defaultValue)
boolean
isDefined(ThucydidesSystemProperty property)
boolean
isEmpty(ThucydidesSystemProperty property)
void
setValue(ThucydidesSystemProperty property, java.lang.String value)
Sets a Serenity system property to s specified value.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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
public java.lang.Integer getIntegerValue(ThucydidesSystemProperty property, java.lang.Integer defaultValue) -
getBooleanValue
-