This commit is contained in:
Milos Kozak 2021-12-06 16:07:17 +01:00
parent 952278a93a
commit 119d2c8f0e

View file

@ -40,7 +40,7 @@ class OmnipodErosPumpPluginTest : TestBase() {
@Mock lateinit var rileyLinkUtil: RileyLinkUtil @Mock lateinit var rileyLinkUtil: RileyLinkUtil
@Mock lateinit var pumpSync: PumpSync @Mock lateinit var pumpSync: PumpSync
var rxBusWrapper = RxBus(TestAapsSchedulers(), aapsLogger) private var rxBusWrapper = RxBus(TestAapsSchedulers(), aapsLogger)
@Before fun prepare() { @Before fun prepare() {
`when`(rh.gs(ArgumentMatchers.anyInt(), ArgumentMatchers.anyLong())) `when`(rh.gs(ArgumentMatchers.anyInt(), ArgumentMatchers.anyLong()))
@ -57,7 +57,7 @@ class OmnipodErosPumpPluginTest : TestBase() {
null, null, null, null, null, null, null, null,
rileyLinkUtil, null, null, pumpSync rileyLinkUtil, null, null, pumpSync
) )
val pumpState = PumpSync.PumpState(null, null, null, null) val pumpState = PumpSync.PumpState(null, null, null, null, "")
`when`(pumpSync.expectedPumpState()).thenReturn(pumpState) `when`(pumpSync.expectedPumpState()).thenReturn(pumpState)
`when`(rileyLinkUtil.rileyLinkHistory).thenReturn(ArrayList()) `when`(rileyLinkUtil.rileyLinkHistory).thenReturn(ArrayList())
`when`(injector.androidInjector()).thenReturn( `when`(injector.androidInjector()).thenReturn(