@API(status=EXPERIMENTAL,
since="1.2.4")
public enum Lifespan
extends java.lang.Enum<Lifespan>
Store| Enum Constant and Description |
|---|
PROPERTY
Live until the currently running property is finished
|
RUN
Live for the whole test run
|
TRY
Live for a single try
|
| Modifier and Type | Method and Description |
|---|---|
static Lifespan |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Lifespan[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Lifespan RUN
public static final Lifespan PROPERTY
public static final Lifespan TRY
public static Lifespan[] values()
for (Lifespan c : Lifespan.values()) System.out.println(c);
public static Lifespan valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null