Annotation Type VisibleForTesting


  • @Deprecated
    @Retention(SOURCE)
    public @interface VisibleForTesting
    Deprecated.
    Use com.google.common.annotations.VisibleForTesting instead.
    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

      Optional Elements 
      Modifier and Type Optional Element Description
      VisibleForTesting.Visibility visibility
      Deprecated.
      Intended visibility if the element had not been made public or package-private for testing.
    • Element Detail

      • visibility

        VisibleForTesting.Visibility visibility
        Deprecated.
        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