From 6689f713684cc75a4ceff89f7a7d77bdee7811d5 Mon Sep 17 00:00:00 2001 From: Milos Kozak Date: Tue, 17 Mar 2020 20:11:05 +0100 Subject: [PATCH] fix test --- .../androidaps/plugins/pump/danaRS/DanaRSPluginTest.kt | 5 ----- 1 file changed, 5 deletions(-) diff --git a/app/src/test/java/info/nightscout/androidaps/plugins/pump/danaRS/DanaRSPluginTest.kt b/app/src/test/java/info/nightscout/androidaps/plugins/pump/danaRS/DanaRSPluginTest.kt index 49eea833a1..3064b1c0e3 100644 --- a/app/src/test/java/info/nightscout/androidaps/plugins/pump/danaRS/DanaRSPluginTest.kt +++ b/app/src/test/java/info/nightscout/androidaps/plugins/pump/danaRS/DanaRSPluginTest.kt @@ -3,7 +3,6 @@ package info.nightscout.androidaps.plugins.pump.danaRS import android.content.Context import dagger.android.AndroidInjector import dagger.android.HasAndroidInjector -import info.AAPSMocker import info.nightscout.androidaps.Constants import info.nightscout.androidaps.R import info.nightscout.androidaps.interfaces.CommandQueueProvider @@ -67,10 +66,6 @@ class DanaRSPluginTest : DanaRSTestBase() { @Before fun prepareMocks() { - AAPSMocker.mockMainApp() // TODO remove - AAPSMocker.mockSP() - AAPSMocker.mockL() - AAPSMocker.mockStrings() Mockito.`when`(sp.getString(R.string.key_danars_address, "")).thenReturn("") Mockito.`when`(resourceHelper.gs(eq(R.string.limitingbasalratio), anyObject(), anyObject())).thenReturn("limitingbasalratio") Mockito.`when`(resourceHelper.gs(eq(R.string.limitingpercentrate), anyObject(), anyObject())).thenReturn("limitingpercentrate")