|
|
|
@ -24,7 +24,7 @@ import com.google.samples.apps.nowinandroid.core.data.testdoubles.TestTopicDao
|
|
|
|
|
import com.google.samples.apps.nowinandroid.core.database.dao.TopicDao
|
|
|
|
|
import com.google.samples.apps.nowinandroid.core.database.model.TopicEntity
|
|
|
|
|
import com.google.samples.apps.nowinandroid.core.database.model.asExternalModel
|
|
|
|
|
import com.google.samples.apps.nowinandroid.core.datastore.NiaPreferencesLocalDataSource
|
|
|
|
|
import com.google.samples.apps.nowinandroid.core.datastore.NiaPreferencesDataSource
|
|
|
|
|
import com.google.samples.apps.nowinandroid.core.datastore.test.testUserPreferencesDataStore
|
|
|
|
|
import com.google.samples.apps.nowinandroid.core.model.data.Topic
|
|
|
|
|
import com.google.samples.apps.nowinandroid.core.network.model.NetworkTopic
|
|
|
|
@ -44,7 +44,7 @@ class OfflineFirstTopicsRepositoryTest {
|
|
|
|
|
|
|
|
|
|
private lateinit var network: TestNiaNetworkDataSource
|
|
|
|
|
|
|
|
|
|
private lateinit var niaPreferences: NiaPreferencesLocalDataSource
|
|
|
|
|
private lateinit var niaPreferences: NiaPreferencesDataSource
|
|
|
|
|
|
|
|
|
|
private lateinit var synchronizer: Synchronizer
|
|
|
|
|
|
|
|
|
@ -55,7 +55,7 @@ class OfflineFirstTopicsRepositoryTest {
|
|
|
|
|
fun setup() {
|
|
|
|
|
topicDao = TestTopicDao()
|
|
|
|
|
network = TestNiaNetworkDataSource()
|
|
|
|
|
niaPreferences = NiaPreferencesLocalDataSource(
|
|
|
|
|
niaPreferences = NiaPreferencesDataSource(
|
|
|
|
|
tmpFolder.testUserPreferencesDataStore()
|
|
|
|
|
)
|
|
|
|
|
synchronizer = TestSynchronizer(niaPreferences)
|
|
|
|
|