From b05ea4724ceb991d91b3863d02791997cad96f31 Mon Sep 17 00:00:00 2001 From: YvesKalume Date: Tue, 4 Oct 2022 22:02:00 +0200 Subject: [PATCH] fix failling tests Change-Id: I88b6d80dfb473010f8742890d9f6b17ed153ecc5 --- .../apps/nowinandroid/core/data/testdoubles/TestAuthorDao.kt | 2 +- .../nowinandroid/core/data/testdoubles/TestNewsResourceDao.kt | 2 +- .../apps/nowinandroid/core/data/testdoubles/TestTopicDao.kt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/data/src/test/java/com/google/samples/apps/nowinandroid/core/data/testdoubles/TestAuthorDao.kt b/core/data/src/test/java/com/google/samples/apps/nowinandroid/core/data/testdoubles/TestAuthorDao.kt index 5cdfb6be3..a740f4a4e 100644 --- a/core/data/src/test/java/com/google/samples/apps/nowinandroid/core/data/testdoubles/TestAuthorDao.kt +++ b/core/data/src/test/java/com/google/samples/apps/nowinandroid/core/data/testdoubles/TestAuthorDao.kt @@ -58,7 +58,7 @@ class TestAuthorDao : AuthorDao { } override suspend fun upsertAuthors(entities: List) { - TODO("Not yet implemented") + entitiesStateFlow.value = entities } override suspend fun deleteAuthors(ids: List) { diff --git a/core/data/src/test/java/com/google/samples/apps/nowinandroid/core/data/testdoubles/TestNewsResourceDao.kt b/core/data/src/test/java/com/google/samples/apps/nowinandroid/core/data/testdoubles/TestNewsResourceDao.kt index d5c0044f3..a91c0fc87 100644 --- a/core/data/src/test/java/com/google/samples/apps/nowinandroid/core/data/testdoubles/TestNewsResourceDao.kt +++ b/core/data/src/test/java/com/google/samples/apps/nowinandroid/core/data/testdoubles/TestNewsResourceDao.kt @@ -86,7 +86,7 @@ class TestNewsResourceDao : NewsResourceDao { } override suspend fun upsertNewsResources(newsResourceEntities: List) { - TODO("Not yet implemented") + entitiesStateFlow.value = newsResourceEntities } override suspend fun insertOrIgnoreTopicCrossRefEntities( diff --git a/core/data/src/test/java/com/google/samples/apps/nowinandroid/core/data/testdoubles/TestTopicDao.kt b/core/data/src/test/java/com/google/samples/apps/nowinandroid/core/data/testdoubles/TestTopicDao.kt index 7f2efffc5..50910ddd2 100644 --- a/core/data/src/test/java/com/google/samples/apps/nowinandroid/core/data/testdoubles/TestTopicDao.kt +++ b/core/data/src/test/java/com/google/samples/apps/nowinandroid/core/data/testdoubles/TestTopicDao.kt @@ -63,7 +63,7 @@ class TestTopicDao : TopicDao { } override suspend fun upsertTopics(entities: List) { - TODO("Not yet implemented") + entitiesStateFlow.value = entities } override suspend fun deleteTopics(ids: List) {