Annotation VisibleForTesting
-
- All Implemented Interfaces:
-
java.lang.annotation.Annotation
@Documented()@Retention(value = RetentionPolicy.SOURCE) public @interface VisibleForTesting
Denotes that the class, method or field has its visibility relaxed so that unit tests can access it. This means that this API is not-public. The
visibilityargument 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. Copy of this class under ASL license: https://github.com/aosp-mirror/platform_frameworks_base/blob/master/core/java/com/android/internal/annotations/VisibleForTesting.java
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enumVisibleForTesting.VisibilityIntended visibility if the element had not been made public or package-private for testing.
-
Method Summary
Modifier and Type Method Description abstract VisibleForTesting.Visibilityvisibility()If no visibility specified, one should assume the element originally intended to be private. -
-
Method Detail
-
visibility
abstract VisibleForTesting.Visibility visibility()
If no visibility specified, one should assume the element originally intended to be private.
- Returns:
Visibility Intended visibility if the element had not been made public or package-private for testing.
-
-
-
-