Interface HasSettings

    • Method Summary

      All Methods Instance Methods Default Methods 
      Modifier and Type Method Description
      default java.util.Map<java.lang.String,​java.lang.Object> getSettings()
      Get settings stored for this test session It's probably better to use a convenience function, rather than use this function directly.
      default HasSettings setSetting​(Setting setting, java.lang.Object value)
      Set a setting for this test session It's probably better to use a convenience function, rather than use this function directly.
      default HasSettings setSetting​(java.lang.String settingName, java.lang.Object value)
      Set a setting for this test session It's probably better to use a convenience function, rather than use this function directly.
      default HasSettings setSettings​(java.util.EnumMap<Setting,​java.lang.Object> settings)
      Sets settings for this test session.
      default HasSettings setSettings​(java.util.Map<java.lang.String,​java.lang.Object> settings)
      Sets settings for this test session.
    • Method Detail

      • setSetting

        default HasSettings setSetting​(Setting setting,
                                       java.lang.Object value)
        Set a setting for this test session It's probably better to use a convenience function, rather than use this function directly. Try finding the method for the specific setting you want to change.
        Parameters:
        setting - Setting you wish to set.
        value - Value of the setting.
        Returns:
        Self instance for chaining.
      • setSetting

        default HasSettings setSetting​(java.lang.String settingName,
                                       java.lang.Object value)
        Set a setting for this test session It's probably better to use a convenience function, rather than use this function directly. Try finding the method for the specific setting you want to change.
        Parameters:
        settingName - Setting name you wish to set.
        value - Value of the setting.
        Returns:
        Self instance for chaining.
      • setSettings

        default HasSettings setSettings​(java.util.EnumMap<Setting,​java.lang.Object> settings)
        Sets settings for this test session.
        Parameters:
        settings - a map with settings, where key is the setting name you wish to set and value is the value of the setting.
        Returns:
        Self instance for chaining.
      • setSettings

        default HasSettings setSettings​(java.util.Map<java.lang.String,​java.lang.Object> settings)
        Sets settings for this test session.
        Parameters:
        settings - a map with settings, where key is the setting name you wish to set and value is the value of the setting.
        Returns:
        Self instance for chaining.
      • getSettings

        default java.util.Map<java.lang.String,​java.lang.Object> getSettings()
        Get settings stored for this test session It's probably better to use a convenience function, rather than use this function directly. Try finding the method for the specific setting you want to read.
        Returns:
        JsonObject, a straight-up hash of settings.