From ab30e52ed7a4c74befed50256bdcf291a4164178 Mon Sep 17 00:00:00 2001 From: Milos Kozak Date: Tue, 14 Feb 2023 22:29:35 +0100 Subject: [PATCH] fix tests --- .../plugins/configBuilder/ConfigBuilderPluginTest.kt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/src/test/java/info/nightscout/androidaps/plugins/configBuilder/ConfigBuilderPluginTest.kt b/app/src/test/java/info/nightscout/androidaps/plugins/configBuilder/ConfigBuilderPluginTest.kt index 2268075891..82c4e31d90 100644 --- a/app/src/test/java/info/nightscout/androidaps/plugins/configBuilder/ConfigBuilderPluginTest.kt +++ b/app/src/test/java/info/nightscout/androidaps/plugins/configBuilder/ConfigBuilderPluginTest.kt @@ -6,7 +6,9 @@ import info.nightscout.androidaps.TestBase import info.nightscout.configuration.configBuilder.ConfigBuilderPlugin import info.nightscout.interfaces.logging.UserEntryLogger import info.nightscout.interfaces.plugin.ActivePlugin +import info.nightscout.interfaces.protection.ProtectionCheck import info.nightscout.interfaces.pump.PumpSync +import info.nightscout.interfaces.ui.UiInteraction import info.nightscout.rx.bus.RxBus import info.nightscout.shared.interfaces.ResourceHelper import info.nightscout.shared.sharedPreferences.SP @@ -21,6 +23,8 @@ class ConfigBuilderPluginTest : TestBase() { @Mock lateinit var activePlugin: ActivePlugin @Mock lateinit var uel: UserEntryLogger @Mock lateinit var pumpSync: PumpSync + @Mock lateinit var protectionCheck: ProtectionCheck + @Mock lateinit var uiInteraction: UiInteraction private lateinit var configBuilderPlugin: ConfigBuilderPlugin @@ -33,6 +37,6 @@ class ConfigBuilderPluginTest : TestBase() { @BeforeEach fun prepareMock() { - configBuilderPlugin = ConfigBuilderPlugin(injector, aapsLogger, rh, sp, RxBus(aapsSchedulers, aapsLogger), activePlugin, uel, pumpSync) + configBuilderPlugin = ConfigBuilderPlugin(injector, aapsLogger, rh, sp, RxBus(aapsSchedulers, aapsLogger), activePlugin, uel, pumpSync, protectionCheck, uiInteraction) } } \ No newline at end of file