From 0a86c63acedae1eb54f66e0dfacebdaacd76ca68 Mon Sep 17 00:00:00 2001 From: Milos Kozak Date: Mon, 3 May 2021 09:49:26 +0200 Subject: [PATCH] fix tests --- .../plugins/pump/danaR/comm/DanaRTestBase.kt | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/danar/src/test/java/info/nightscout/androidaps/plugins/pump/danaR/comm/DanaRTestBase.kt b/danar/src/test/java/info/nightscout/androidaps/plugins/pump/danaR/comm/DanaRTestBase.kt index 6eb138470a..5b24a3b8b7 100644 --- a/danar/src/test/java/info/nightscout/androidaps/plugins/pump/danaR/comm/DanaRTestBase.kt +++ b/danar/src/test/java/info/nightscout/androidaps/plugins/pump/danaR/comm/DanaRTestBase.kt @@ -5,11 +5,16 @@ import dagger.android.HasAndroidInjector import info.nightscout.androidaps.TestBase import info.nightscout.androidaps.TestPumpPlugin import info.nightscout.androidaps.dana.DanaPump +import info.nightscout.androidaps.dana.database.DanaHistoryRecordDao import info.nightscout.androidaps.danaRKorean.DanaRKoreanPlugin import info.nightscout.androidaps.danaRv2.DanaRv2Plugin import info.nightscout.androidaps.danar.DanaRPlugin import info.nightscout.androidaps.danar.comm.MessageBase -import info.nightscout.androidaps.interfaces.* +import info.nightscout.androidaps.interfaces.ActivePlugin +import info.nightscout.androidaps.interfaces.CommandQueueProvider +import info.nightscout.androidaps.interfaces.ConfigBuilder +import info.nightscout.androidaps.interfaces.ProfileFunction +import info.nightscout.androidaps.interfaces.PumpSync import info.nightscout.androidaps.plugins.bus.RxBusWrapper import info.nightscout.androidaps.plugins.configBuilder.ConstraintChecker import info.nightscout.androidaps.plugins.pump.common.bolusInfo.DetailedBolusInfoStorage @@ -31,7 +36,6 @@ open class DanaRTestBase : TestBase() { @Mock lateinit var profileFunction: ProfileFunction @Mock lateinit var activePlugin: ActivePlugin @Mock lateinit var dateUtil: DateUtil - @Mock lateinit var databaseHelper: DatabaseHelperInterface @Mock lateinit var danaRPlugin: DanaRPlugin @Mock lateinit var danaRKoreanPlugin: DanaRKoreanPlugin @Mock lateinit var danaRv2Plugin: DanaRv2Plugin @@ -41,6 +45,7 @@ open class DanaRTestBase : TestBase() { @Mock lateinit var detailedBolusInfoStorage: DetailedBolusInfoStorage @Mock lateinit var constraintChecker: ConstraintChecker @Mock lateinit var pumpSync: PumpSync + @Mock lateinit var danaHistoryRecordDao: DanaHistoryRecordDao private lateinit var testPumpPlugin: TestPumpPlugin @@ -69,9 +74,9 @@ open class DanaRTestBase : TestBase() { it.configBuilder = configBuilder it.detailedBolusInfoStorage = detailedBolusInfoStorage it.constraintChecker = constraintChecker - it.databaseHelper = databaseHelper it.commandQueue = commandQueue it.pumpSync = pumpSync + it.danaHistoryRecordDao = danaHistoryRecordDao } } }