注释类型 MockBeans


  • @Retention(RUNTIME)
    @Target(TYPE)
    @Documented
    public @interface MockBeans
    Container annotation that aggregates several MockBean annotations.

    Can be used natively, declaring several nested MockBean annotations. Can also be used in conjunction with Java 8's support for repeatable annotations, where MockBean can simply be declared several times on the same type, implicitly generating this container annotation.

    从以下版本开始:
    1.4.0
    • 必需元素概要

      所需元素 
      修饰符和类型必需的元素说明
      MockBean[]value
      Return the contained MockBean annotations.