by.stub.annotations.VisibleForTesting Maven / Gradle / Ivy
package by.stub.annotations;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* An annotation that indicates that the visibility of a type or member has been relaxed to make the code testable.
* Inspired by @VisibleForTesting from Google's Guava library
*/
@Retention(RetentionPolicy.CLASS)
@Target({ElementType.TYPE, ElementType.CONSTRUCTOR, ElementType.METHOD, ElementType.FIELD})
public @interface VisibleForTesting {
}