Annotation Type Listeners


@Documented @Retention(RUNTIME) @Target(TYPE) public @interface Listeners
Annotate your suite class with this annotation to automatically add hooks to the RunNotifier used for executing tests inside RandomizedRunner.
See Also:
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Class<? extends org.junit.runner.notification.RunListener>[]
    An array of listener classes.
  • Element Details

    • value

      Class<? extends org.junit.runner.notification.RunListener>[] value
      An array of listener classes. These classes must be instantiable (public, static, no-args constructor, etc.).