Skip to content

Commit

Permalink
Merge pull request #3002 from pavlogs/master
Browse files Browse the repository at this point in the history
Add @inherited to the Listeners annotation
  • Loading branch information
juherr authored Nov 1, 2023
2 parents 5bc2335 + 10e4ee2 commit 4e09c18
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Current
New: Added @Inherited to the Listeners annotation, allowing it to be used in forming meta-annotations. (Pavlo Glushchenko)
Fixed: GITHUB-2991: Suite attributes map should be thread safe (Krishnan Mahadevan)
Fixed: GITHUB-2974: Command line arguments -groups and -excludegroups override defined groups in a suite xml file (dr29bart)
Fixed: GITHUB-2961: "Unexpected value: 16" error when multiple beforeMethod config methods with firstTimeOnly property run before a test (Krishnan Mahadevan)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import static java.lang.annotation.ElementType.TYPE;

import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import org.testng.IAnnotationTransformer;
Expand All @@ -18,6 +19,7 @@
*/
@Retention(java.lang.annotation.RetentionPolicy.RUNTIME)
@Target({TYPE})
@Inherited
public @interface Listeners {
Class<? extends ITestNGListener>[] value() default {};
}

0 comments on commit 4e09c18

Please sign in to comment.