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.BooleangetBooleanValue(ThucydidesSystemProperty property, boolean defaultValue)java.lang.IntegergetIntegerValue(ThucydidesSystemProperty property, java.lang.Integer defaultValue)static SerenitySystemPropertiesgetProperties()java.lang.StringgetValue(ThucydidesSystemProperty property)java.lang.StringgetValue(ThucydidesSystemProperty property, java.lang.String defaultValue)booleanisDefined(ThucydidesSystemProperty property)booleanisEmpty(ThucydidesSystemProperty property)voidsetValue(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
-