Annotation Interface SpyBeans


@Deprecated(since="3.4.0", forRemoval=true) @Retention(RUNTIME) @Target(TYPE) @Documented public @interface SpyBeans
Deprecated, for removal: This API element is subject to removal in a future version.
since 3.4.0 for removal in 3.6.0 in favor of MockitoSpyBean
Container annotation that aggregates several @SpyBean annotations.

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

Since:
1.4.0
Author:
Phillip Webb
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
    Return the contained @SpyBean annotations.
  • Element Details

    • value

      SpyBean[] value
      Deprecated, for removal: This API element is subject to removal in a future version.
      Return the contained @SpyBean annotations.
      Returns:
      the spy beans