forked from testng-team/testng
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
36 changed files
with
1,669 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
testng-core/src/main/java/org/testng/ListenerComparator.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package org.testng; | ||
|
||
/** | ||
* Listener interface that can be used to determine listener execution order. This interface will | ||
* NOT be used to determine execution order for {@link IReporter} implementations. | ||
* | ||
* <p>An implementation can be plugged into TestNG either via: | ||
* | ||
* <ol> | ||
* <li>{@link TestNG#setListenerComparator(ListenerComparator)} if you are using the {@link | ||
* TestNG} APIs. | ||
* <li>Via the configuration parameter <code>-listenercomparator</code> if you are using a build | ||
* tool | ||
* </ol> | ||
*/ | ||
@FunctionalInterface | ||
public interface ListenerComparator { | ||
|
||
/** | ||
* @param l1 - First {@link ITestNGListener} object to be compared. | ||
* @param l2 - Second {@link ITestNGListener} object to be compared. | ||
* @return - a negative integer, zero, or a positive integer as the first argument is less than, | ||
* equal to, or greater than the second. | ||
*/ | ||
int compare(ITestNGListener l1, ITestNGListener l2); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.