update test
This commit is contained in:
parent
5dd82d8bc9
commit
1da8106b41
1 changed files with 2 additions and 2 deletions
|
@ -154,11 +154,11 @@ class ConstraintsCheckerTest : TestBaseWithProfile() {
|
||||||
`when`(sp.getString(R.string.key_aps_mode, "open")).thenReturn("closed")
|
`when`(sp.getString(R.string.key_aps_mode, "open")).thenReturn("closed")
|
||||||
objectivesPlugin.objectives[ObjectivesPlugin.MAXIOB_ZERO_CL_OBJECTIVE].startedOn = 0
|
objectivesPlugin.objectives[ObjectivesPlugin.MAXIOB_ZERO_CL_OBJECTIVE].startedOn = 0
|
||||||
var c: Constraint<Boolean> = constraintChecker.isClosedLoopAllowed()
|
var c: Constraint<Boolean> = constraintChecker.isClosedLoopAllowed()
|
||||||
Assert.assertEquals(true, c.reasonList.size == 2) // Safety & Objectives
|
Assert.assertEquals(2, c.reasonList.size) // Safety & Objectives
|
||||||
Assert.assertEquals(false, c.value())
|
Assert.assertEquals(false, c.value())
|
||||||
`when`(sp.getString(R.string.key_aps_mode, "open")).thenReturn("open")
|
`when`(sp.getString(R.string.key_aps_mode, "open")).thenReturn("open")
|
||||||
c = constraintChecker.isClosedLoopAllowed()
|
c = constraintChecker.isClosedLoopAllowed()
|
||||||
Assert.assertEquals(true, c.reasonList.size == 3) // 2x Safety & Objectives
|
Assert.assertEquals(3, c.reasonList.size) // 2x Safety & Objectives
|
||||||
Assert.assertEquals(false, c.value())
|
Assert.assertEquals(false, c.value())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue