@API(status=EXPERIMENTAL,
since="5.9")
public static enum Timeout.ThreadMode
extends java.lang.Enum<Timeout.ThreadMode>
ThreadMode is use to define whether the test code should be executed in the thread
of the calling code or in a separated thread.| Enum Constant and Description |
|---|
INFERRED
The thread mode is determined using the parameter configured in property
.
|
SAME_THREAD
The test code is executed in the thread of the calling code.
|
SEPARATE_THREAD
The test code is executed in a different thread than that of the calling code.
|
| Modifier and Type | Method and Description |
|---|---|
static Timeout.ThreadMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Timeout.ThreadMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Timeout.ThreadMode INFERRED
public static final Timeout.ThreadMode SAME_THREAD
public static final Timeout.ThreadMode SEPARATE_THREAD
public static Timeout.ThreadMode[] values()
for (Timeout.ThreadMode c : Timeout.ThreadMode.values()) System.out.println(c);
public static Timeout.ThreadMode 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