com.ninjasquad.springmockk.MockkBeans Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of springmockk Show documentation
Show all versions of springmockk Show documentation
MockBean and SpyBean, but for MockK instead of Mockito
package com.ninjasquad.springmockk;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Container annotation that aggregates several {@link MockkBean} annotations.
*
* Can be used natively, declaring several nested {@link MockkBean} annotations. Can also
* be used in conjunction with Java 8's support for repeatable annotations, where
* {@link MockkBean} can simply be declared several times on the same
* {@linkplain ElementType#TYPE type}, implicitly generating this container annotation.
*
* @author Phillip Webb
* @author JB Nizet
*/
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
@Documented
public @interface MockkBeans {
/**
* Return the contained {@link MockkBean} annotations.
* @return the mockk beans
*/
MockkBean[] value();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy