Package rife.bld.testing
Annotation Interface VisibleForTesting
@Documented
@Retention(CLASS)
@Target({METHOD,CONSTRUCTOR,FIELD,TYPE})
public @interface VisibleForTesting
Indicates that the visibility of a type or member has been relaxed
to make the code testable.
Members annotated with @VisibleForTesting are intended to be
private or otherwise less visible, but have been made package-private,
protected, or public to allow access from unit tests.
This annotation is intended only as documentation. Production code should
never call a method annotated with @VisibleForTesting outside of tests.
- Since:
- 1.0