fix test
This commit is contained in:
parent
952278a93a
commit
119d2c8f0e
|
@ -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(
|
||||||
|
|
Loading…
Reference in a new issue