File tree 2 files changed +3
-2
lines changed
src/test/java/info/nightscout/androidaps/interfaces 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -126,7 +126,7 @@ android {
126
126
targetSdkVersion 28
127
127
multiDexEnabled true
128
128
versionCode 1500
129
- version " 2.7.0"
129
+ version " 2.7.0-dev "
130
130
buildConfigField " String" , " VERSION" , ' "' + version + ' "'
131
131
buildConfigField " String" , " BUILDVERSION" , ' "' + generateGitBuild() + ' -' + generateDate() + ' "'
132
132
buildConfigField " String" , " REMOTE" , ' "' + generateGitRemote() + ' "'
Original file line number Diff line number Diff line change @@ -154,10 +154,11 @@ class ConstraintsCheckerTest : TestBaseWithProfile() {
154
154
`when `(sp.getString(R .string.key_aps_mode, " open" )).thenReturn(" closed" )
155
155
objectivesPlugin.objectives[ObjectivesPlugin .MAXIOB_ZERO_CL_OBJECTIVE ].startedOn = 0
156
156
var c: Constraint <Boolean > = constraintChecker.isClosedLoopAllowed()
157
- Assert .assertEquals( 2 , c.reasonList.size ) // Safety & Objectives
157
+ Assert .assertTrue( c.reasonList[ 0 ].toString().contains( " Closed loop is disabled " ) ) // Safety & Objectives
158
158
Assert .assertEquals(false , c.value())
159
159
`when `(sp.getString(R .string.key_aps_mode, " open" )).thenReturn(" open" )
160
160
c = constraintChecker.isClosedLoopAllowed()
161
+ Assert .assertTrue(c.reasonList[0 ].toString().contains(" Closed loop mode disabled in preferences" )) // Safety & Objectives
161
162
Assert .assertEquals(3 , c.reasonList.size) // 2x Safety & Objectives
162
163
Assert .assertEquals(false , c.value())
163
164
}
You can’t perform that action at this time.
0 commit comments