Package org.testng
Interface ListenerComparator
- All Superinterfaces:
Comparator<ITestNGListener>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Listener interface that can be used to determine listener execution order. This interface will
NOT be used to determine execution order for
IReporter
implementations.
An implementation can be plugged into TestNG either via:
TestNG.setListenerComparator(ListenerComparator)
if you are using theTestNG
APIs.- Via the configuration parameter
-listenercomparator
if you are using a build tool
-
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic <T extends ITestNGListener>
Collection<T> sort
(Collection<T> list, ListenerComparator comparator) static <T extends ITestNGListener>
List<T> sort
(List<T> list, ListenerComparator comparator) Methods inherited from interface java.util.Comparator
compare, equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Method Details
-
sort
-
sort
static <T extends ITestNGListener> Collection<T> sort(Collection<T> list, ListenerComparator comparator)
-