Use TestLifecycleOwner in all tests
Instead of creating a custom implementation of
LifecycleOwner, use TestLifecycleOwner.
Test: ran all the tests
Change-Id: I0f68830368df1e448f57cd8c0e3783a537389603
diff --git a/lifecycle/lifecycle-livedata/build.gradle b/lifecycle/lifecycle-livedata/build.gradle
index fdd20bf..b43db3a 100644
--- a/lifecycle/lifecycle-livedata/build.gradle
+++ b/lifecycle/lifecycle-livedata/build.gradle
@@ -30,8 +30,9 @@
api("androidx.arch.core:core-runtime:2.1.0")
api(project(":lifecycle:lifecycle-livedata-core"))
- testImplementation(project(":lifecycle:lifecycle-runtime"))
+ testImplementation(project(":lifecycle:lifecycle-runtime-testing"))
testImplementation("androidx.arch.core:core-testing:2.1.0")
+ testImplementation(KOTLIN_COROUTINES_TEST)
testImplementation(JUNIT)
testImplementation(MOCKITO_CORE)
}