From 63d5ef4aa7a06b87647c2ae21ddbabc7dcab7e4f Mon Sep 17 00:00:00 2001 From: Roumen Georgiev Date: Thu, 23 May 2019 11:01:16 +0300 Subject: [PATCH] Autosens !=0 && IS_NOT_AVAILABLE doesn't exist enymore --- .../general/automation/triggers/TriggerAutosensValueTest.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/app/src/test/java/info/nightscout/androidaps/plugins/general/automation/triggers/TriggerAutosensValueTest.java b/app/src/test/java/info/nightscout/androidaps/plugins/general/automation/triggers/TriggerAutosensValueTest.java index 41ec343e0b..ab1851aefc 100644 --- a/app/src/test/java/info/nightscout/androidaps/plugins/general/automation/triggers/TriggerAutosensValueTest.java +++ b/app/src/test/java/info/nightscout/androidaps/plugins/general/automation/triggers/TriggerAutosensValueTest.java @@ -63,8 +63,6 @@ public class TriggerAutosensValueTest { when(IobCobCalculatorPlugin.getPlugin().getLastAutosensData("Automation trigger")).thenReturn(new AutosensData()); t = new TriggerAutosensValue().setValue(80).comparator(Comparator.Compare.IS_EQUAL_OR_LESSER); Assert.assertFalse(t.shouldRun()); - t = new TriggerAutosensValue().comparator(Comparator.Compare.IS_NOT_AVAILABLE); - Assert.assertTrue(t.shouldRun()); // Test autosensData == null and Comparator == IS_NOT_AVAILABLE when(IobCobCalculatorPlugin.getPlugin().getLastAutosensData("Automation trigger")).thenReturn(null);