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 Details

    • SerenitySystemProperties

      public SerenitySystemProperties()
  • Method Details

    • getProperties

      public static SerenitySystemProperties getProperties()
    • getValue

      public java.lang.String getValue​(ThucydidesSystemProperty property)
    • isDefined

      public boolean isDefined​(ThucydidesSystemProperty property)
      Returns:
      True if a Serenity system property has been set.
    • getValue

      public java.lang.String getValue​(ThucydidesSystemProperty property, java.lang.String defaultValue)
    • isEmpty

      public boolean isEmpty​(ThucydidesSystemProperty property)
      Returns:
      True if a given Serenity system property has been set to a non-empty value.
    • setValue

      public void setValue​(ThucydidesSystemProperty property, java.lang.String value)
      Sets a Serenity system property to s specified value.
      Parameters:
      property - the name of the property
      value - the property value
    • getIntegerValue

      public java.lang.Integer getIntegerValue​(ThucydidesSystemProperty property, java.lang.Integer defaultValue)
    • getBooleanValue

      public java.lang.Boolean getBooleanValue​(ThucydidesSystemProperty property, boolean defaultValue)