@Retention(value=RUNTIME) @Target(value=TYPE) public @interface Listeners
ITestNGListener
is allowed,
except IAnnotationTransformer
and IAnnotationTransformer2
,
which need to be defined in XML since they have to be known before we even
start looking for annotations.
Note that listeners specified this way are global to your entire suite, just
like listeners specified in testng.xml.Modifier and Type | Optional Element and Description |
---|---|
Class<? extends ITestNGListener>[] |
value |
public abstract Class<? extends ITestNGListener>[] value
Copyright © 2014. All Rights Reserved.