Add missing Koin definitions to TestApp
@@ -2,11 +2,16 @@ package com.fsck.k9
import android.app.Application
import com.fsck.k9.backend.BackendManager
+import com.fsck.k9.controller.ControllerExtension
import com.fsck.k9.crypto.EncryptionExtractor
+import com.fsck.k9.notification.NotificationActionCreator
+import com.fsck.k9.notification.NotificationResourceProvider
+import com.fsck.k9.notification.NotificationStrategy
import com.fsck.k9.preferences.InMemoryStoragePersister
import com.fsck.k9.preferences.StoragePersister
import com.fsck.k9.storage.storageModule
import com.nhaarman.mockitokotlin2.mock
+import org.koin.core.qualifier.named
import org.koin.dsl.module
class TestApp : Application() {
@@ -27,4 +32,8 @@ val testModule = module {
single { mock<EncryptionExtractor>() }
single<StoragePersister> { InMemoryStoragePersister() }
single { mock<BackendManager>() }
+ single { mock<NotificationResourceProvider>() }
+ single { mock<NotificationActionCreator>() }
+ single { mock<NotificationStrategy>() }
+ single(named("controllerExtensions")) { emptyList<ControllerExtension>() }
}
