Annotation Interface WithListener


@Retention(RUNTIME) @Target({TYPE,METHOD}) public @interface WithListener
Annotate the class of an AbstractTest or a method-based test with this annotation in order to add test listeners to the test.
The classes provided as listeners must have a no-arg constructor.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Class<? extends TestListener>[]
    Returns the listeners of the test.
  • Element Details

    • value

      Class<? extends TestListener>[] value
      Returns the listeners of the test.
      Returns:
      the listeners of the test