com.google.gdata.util.common.annotations
Annotation Type VisibleForTesting


public @interface VisibleForTesting

An annotation that indicates that the visibility of a type or member has been relaxed to make the code testable. The productionVisibility() field indicates the visibility applicable to production code.


Optional Element Summary
 int productionVisibility
          The visibility the annotated type or member would have if it did not need to be made visible for testing.
 

productionVisibility

public abstract int productionVisibility
The visibility the annotated type or member would have if it did not need to be made visible for testing. E.g. VisibleForTesting.Visibility.PROTECTED.

The default production visibility is private, and so, statements like @VisibleForTesting(productionVisibility = Visibility.PRIVATE) can always be replaced with the more terse @VisibleForTesting.

Default:
2