批注接口 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.
  • 必需元素概要

    所需元素
    修饰符和类型
    必需的元素
    说明
    Class<? extends TestListener>[]
    返回 the listeners of the test。
  • 元素详细资料

    • value

      Class<? extends TestListener>[] value
      返回 the listeners of the test。
      返回:
      the listeners of the test