Package com.github.invictum.reportportal
Enum Class LogsPreset
- All Implemented Interfaces:
Serializable,Comparable<LogsPreset>,Constable
Describes a presets of predefined log units.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionabstract Function<net.thucydides.core.model.TestStep,Collection<com.epam.ta.reportportal.ws.model.log.SaveLogRQ>>[] logUnits()Returns an array of log units associated with current presetregister(Function<net.thucydides.core.model.TestStep, Collection<com.epam.ta.reportportal.ws.model.log.SaveLogRQ>>... units) Configures a preset to use a list of passed log units.static LogsPresetReturns the enum constant of this class with the specified name.static LogsPreset[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DEFAULT
Default preset with pre-defined minimalistic set of log units. -
FULL
Preset configured with all available out of the box log units. -
CUSTOM
Custom preset for manual configuration. By default returns an empty array of log units.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
logUnits
public abstract Function<net.thucydides.core.model.TestStep,Collection<com.epam.ta.reportportal.ws.model.log.SaveLogRQ>>[] logUnits()Returns an array of log units associated with current preset -
register
public LogsPreset register(Function<net.thucydides.core.model.TestStep, Collection<com.epam.ta.reportportal.ws.model.log.SaveLogRQ>>... units) Configures a preset to use a list of passed log units. Registration is allowed only for CUSTOM preset
-