# OpenForTesting

Artifact: [androidx.annotation:annotation](https://developer.android.com/jetpack/androidx/releases/annotation) [View Source](https://cs.android.com/search?q=file:androidx/annotation/OpenForTesting.kt+class:androidx.annotation.OpenForTesting) Added in [1.4.0](https://developer.android.com/jetpack/androidx/releases/annotation#1.4.0)

*** ** * ** ***


```
@MustBeDocumented
@Retention(value = AnnotationRetention.BINARY)
@Target(allowedTargets = [AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY_GETTER, AnnotationTarget.PROPERTY_SETTER, AnnotationTarget.CLASS])
public annotation OpenForTesting
```

<br />

*** ** * ** ***

Denotes that this class or method is only `open` to allow unit testing. Any subclass or override is only allowed from tests.