org.springframework.boot.test.mock.mockito

Annotation Type SpyBeans



  • @Retention(value=RUNTIME)
     @Target(value=TYPE)
     @Documented
    public @interface SpyBeans
    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 and Description
      SpyBean[] value
      Return the contained SpyBean annotations.
    • Element Detail

      • value

        public abstract SpyBean[] value
        Return the contained SpyBean annotations.
        Returns:
        the spy beans