com.android.annotations
Annotation Type VisibleForTesting


@Retention(value=SOURCE)
public @interface VisibleForTesting

Denotes that the class, method or field has its visibility relaxed so that unit tests can access it.

The visibility argument can be used to specific what the original visibility should have been if it had not been made public or package-private for testing. The default is to consider the element private.


Optional Element Summary
 VisibleForTesting.Visibility visibility
          Intended visibility if the element had not been made public or package-private for testing.
 

visibility

public abstract VisibleForTesting.Visibility visibility
Intended visibility if the element had not been made public or package-private for testing. If not specified, one should assume the element originally intended to be private.

Default:
com.android.annotations.VisibleForTesting.Visibility.PRIVATE