public static enum TestExecutionListeners.MergeMode extends Enum<TestExecutionListeners.MergeMode>
@TestExecutionListeners is declared on a class that does
not inherit listeners from a superclass.| Enum Constant and Description |
|---|
MERGE_WITH_DEFAULTS
Indicates that locally declared listeners should be merged with the
default listeners.
|
REPLACE_DEFAULTS
Indicates that locally declared listeners should replace the default
listeners.
|
| Modifier and Type | Method and Description |
|---|---|
static TestExecutionListeners.MergeMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TestExecutionListeners.MergeMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TestExecutionListeners.MergeMode REPLACE_DEFAULTS
public static final TestExecutionListeners.MergeMode MERGE_WITH_DEFAULTS
The merging algorithm ensures that duplicates are removed from
the list and that the resulting set of merged listeners is sorted
according to the semantics of
AnnotationAwareOrderComparator. If a listener implements
Ordered or is annotated
with @Order it can
influence the position in which it is merged with the defaults; otherwise,
locally declared listeners will simply be appended to the list of default
listeners when merged.
public static TestExecutionListeners.MergeMode[] values()
for (TestExecutionListeners.MergeMode c : TestExecutionListeners.MergeMode.values()) System.out.println(c);
public static TestExecutionListeners.MergeMode valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is null