diff --git a/app/src/test/java/info/nightscout/androidaps/plugins/insulin/InsulinOrefFreePeakPluginTest.kt b/app/src/test/java/info/nightscout/androidaps/plugins/insulin/InsulinOrefFreePeakPluginTest.kt index ef2e48d182..5a328f6f16 100644 --- a/app/src/test/java/info/nightscout/androidaps/plugins/insulin/InsulinOrefFreePeakPluginTest.kt +++ b/app/src/test/java/info/nightscout/androidaps/plugins/insulin/InsulinOrefFreePeakPluginTest.kt @@ -1,11 +1,12 @@ package info.nightscout.androidaps.plugins.insulin import info.nightscout.androidaps.R +import info.nightscout.androidaps.logging.AAPSLogger import info.nightscout.androidaps.plugins.bus.RxBusWrapper import info.nightscout.androidaps.plugins.configBuilder.ProfileFunction import info.nightscout.androidaps.utils.resources.ResourceHelper import info.nightscout.androidaps.utils.sharedPreferences.SP -import junit.framework.Assert.assertEquals +import org.junit.Assert.assertEquals import org.junit.Before import org.junit.Rule import org.junit.Test @@ -36,10 +37,11 @@ class InsulinOrefFreePeakPluginTest { @Mock lateinit var resourceHelper: ResourceHelper @Mock lateinit var rxBus: RxBusWrapper @Mock lateinit var profileFunction: ProfileFunction + @Mock lateinit var aapsLogger: AAPSLogger @Before fun setup() { - sut = InsulinOrefFreePeakPlugin(sp, resourceHelper, rxBus, profileFunction) + sut = InsulinOrefFreePeakPlugin(sp, resourceHelper, profileFunction, rxBus, aapsLogger) } @Test @@ -56,6 +58,7 @@ class InsulinOrefFreePeakPluginTest { return uninitialized() } + @Suppress("Unchecked_Cast") private fun uninitialized(): T = null as T } \ No newline at end of file