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:
    value()
    • Required Element Summary

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

      • value

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