# 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)

*** ** * ** ***

Common/AllAndroid/JVM
- Cmn

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

*** ** * ** ***

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

## Summary

| ### Public constructors |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/annotation/OpenForTesting#OpenForTesting()()` | Cmn |

## Public constructors

### OpenForTesting

Cmn

```
OpenForTesting()
```