|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | ||||||||
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. |
public abstract int productionVisibility
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.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | ||||||||