Enum Class TestExecutionListeners.MergeMode
- Enclosing class:
@TestExecutionListeners is declared on a class that does
not inherit listeners from a superclass or enclosing
Nested Class Summary
Enum Constant Summary
Method SummaryModifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.
values()Returns an array containing the constants of this enum class, in the order they are declared.
Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Enum Constant Details
REPLACE_DEFAULTSpublic static final TestExecutionListeners.MergeMode REPLACE_DEFAULTSIndicates that locally declared listeners should replace the default listeners.
MERGE_WITH_DEFAULTSpublic static final TestExecutionListeners.MergeMode MERGE_WITH_DEFAULTSIndicates that locally declared listeners should be merged with the default listeners.
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
Orderedor is annotated with
@Orderit 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.
valuespublic static TestExecutionListeners.MergeMode values()Returns an array containing the constants of this enum class, in the order they are declared.
- an array containing the constants of this enum class, in the order they are declared
valueOfReturns 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.)