批注接口 MockBeans


@Deprecated(since="3.4.0", forRemoval=true) @Retention(RUNTIME) @Target(TYPE) @Documented public @interface MockBeans
已过时, 待删除: 此 API 元素将从以后的版本中删除。
since 3.4.0 for removal in 4.0.0 in favor of MockitoBean
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
作者:
Phillip Webb
  • 必需元素概要

    所需元素
    修饰符和类型
    必需的元素
    说明
    已过时, 待删除: 此 API 元素将从以后的版本中删除。
    Return the contained @MockBean annotations.
  • 元素详细资料

    • value

      MockBean[] value
      已过时, 待删除: 此 API 元素将从以后的版本中删除。
      Return the contained @MockBean annotations.
      返回:
      the mock beans