# androidx.lifecycle.testing

# androidx.lifecycle.testing

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/androidx/lifecycle/testing/package-summary "View this page in Java")
Common/All

## Classes

|--------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----|
| [TestLifecycleOwner](https://developer.android.com/reference/kotlin/androidx/lifecycle/testing/TestLifecycleOwner) | Create a[LifecycleOwner](https://developer.android.com/reference/kotlin/androidx/lifecycle/LifecycleOwner)that allows changing the state via the[handleLifecycleEvent](https://developer.android.com/reference/kotlin/androidx/lifecycle/testing/TestLifecycleOwner#handleLifecycleEvent(androidx.lifecycle.Lifecycle.Event))method or[currentState](https://developer.android.com/reference/kotlin/androidx/lifecycle/testing/TestLifecycleOwner#currentState())property. | Cmn |