From 4c64e9b7482b02b0e43494ea30bf48128eb79b29 Mon Sep 17 00:00:00 2001 From: Milos Kozak Date: Fri, 1 Jan 2021 23:52:44 +0100 Subject: [PATCH] test debug --- .../nightscout/androidaps/interfaces/ConstraintsCheckerTest.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/test/java/info/nightscout/androidaps/interfaces/ConstraintsCheckerTest.kt b/app/src/test/java/info/nightscout/androidaps/interfaces/ConstraintsCheckerTest.kt index 29c6f48229..1b16ed85e3 100644 --- a/app/src/test/java/info/nightscout/androidaps/interfaces/ConstraintsCheckerTest.kt +++ b/app/src/test/java/info/nightscout/androidaps/interfaces/ConstraintsCheckerTest.kt @@ -154,6 +154,7 @@ class ConstraintsCheckerTest : TestBaseWithProfile() { `when`(sp.getString(R.string.key_aps_mode, "open")).thenReturn("closed") objectivesPlugin.objectives[ObjectivesPlugin.MAXIOB_ZERO_CL_OBJECTIVE].startedOn = 0 var c: Constraint = constraintChecker.isClosedLoopAllowed() + aapsLogger.debug("Reason list: " + c.reasonList.toString()) Assert.assertTrue(c.reasonList[0].toString().contains("Closed loop is disabled")) // Safety & Objectives Assert.assertEquals(false, c.value()) `when`(sp.getString(R.string.key_aps_mode, "open")).thenReturn("open")