kotlin 1.5.0
This commit is contained in:
parent
a0c7e0352d
commit
2fd093091f
|
@ -127,6 +127,7 @@ class ConstraintsCheckerTest : TestBaseWithProfile() {
|
|||
`when`(resourceHelper.gs(R.string.limitingbolus, 6.0, "pump limit")).thenReturn("")
|
||||
`when`(resourceHelper.gs(R.string.limitingbasalratio, 0.8, "pump limit")).thenReturn("")
|
||||
`when`(resourceHelper.gs(R.string.limitingpercentrate, 200, "pump limit")).thenReturn("")
|
||||
`when`(resourceHelper.gs(R.string.combo_pump_unsupported_operation)).thenReturn("Requested operation not supported by pump")
|
||||
|
||||
// RS constructor
|
||||
`when`(sp.getString(R.string.key_danars_address, "")).thenReturn("")
|
||||
|
|
|
@ -22,6 +22,7 @@ class ActionLoopSuspendTest : ActionsTestBase() {
|
|||
|
||||
`when`(resourceHelper.gs(R.string.suspendloop)).thenReturn("Suspend loop")
|
||||
`when`(resourceHelper.gs(ArgumentMatchers.eq(R.string.suspendloopforXmin), ArgumentMatchers.anyInt())).thenReturn("Suspend loop for %d min")
|
||||
`when`(resourceHelper.gs(R.string.alreadysuspended)).thenReturn("Already suspended")
|
||||
|
||||
sut = ActionLoopSuspend(injector)
|
||||
}
|
||||
|
|
|
@ -27,7 +27,8 @@ class ActionProfileSwitchTest : ActionsTestBase() {
|
|||
`when`(resourceHelper.gs(ArgumentMatchers.eq(R.string.changengetoprofilename), ArgumentMatchers.anyString())).thenReturn("Change profile to %s")
|
||||
`when`(resourceHelper.gs(R.string.alreadyset)).thenReturn("Already set")
|
||||
`when`(resourceHelper.gs(R.string.notexists)).thenReturn("not exists")
|
||||
`when`(resourceHelper.gs(R.string.ok)).thenReturn("OK")
|
||||
`when`(resourceHelper.gs(R.string.error_field_must_not_be_empty)).thenReturn("The field must not be empty")
|
||||
`when`(resourceHelper.gs(R.string.noprofile)).thenReturn("No profile loaded from NS yet")
|
||||
|
||||
sut = ActionProfileSwitch(injector)
|
||||
}
|
||||
|
|
|
@ -5,6 +5,7 @@ import dagger.android.HasAndroidInjector
|
|||
import info.nightscout.androidaps.Constants
|
||||
import info.nightscout.androidaps.plugins.general.automation.TestBaseWithProfile
|
||||
import info.nightscout.androidaps.TestPumpPlugin
|
||||
import info.nightscout.androidaps.automation.R
|
||||
import info.nightscout.androidaps.data.PumpEnactResult
|
||||
import info.nightscout.androidaps.interfaces.*
|
||||
import info.nightscout.androidaps.logging.AAPSLogger
|
||||
|
@ -135,5 +136,8 @@ open class ActionsTestBase : TestBaseWithProfile() {
|
|||
`when`(profileFunction.getUnits()).thenReturn(GlucoseUnit.MGDL)
|
||||
`when`(activePlugin.activeProfileSource).thenReturn(profilePlugin)
|
||||
`when`(profilePlugin.profile).thenReturn(getValidProfileStore())
|
||||
|
||||
`when`(resourceHelper.gs(R.string.ok)).thenReturn("OK")
|
||||
`when`(resourceHelper.gs(R.string.error)).thenReturn("Error")
|
||||
}
|
||||
}
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
buildscript {
|
||||
ext {
|
||||
kotlin_version = '1.4.32'
|
||||
kotlin_version = '1.5.0'
|
||||
coreVersion = '1.3.2'
|
||||
rxjava_version = '2.2.21'
|
||||
rxandroid_version = '2.1.1'
|
||||
|
|
Loading…
Reference in a new issue