From 3567320788e63279c2b4193f161d76dfa75b7ccf Mon Sep 17 00:00:00 2001 From: Milos Kozak Date: Tue, 27 Mar 2018 19:45:44 +0200 Subject: [PATCH] fix test --- .../test/java/info/nightscout/androidaps/data/IobTotalTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/test/java/info/nightscout/androidaps/data/IobTotalTest.java b/app/src/test/java/info/nightscout/androidaps/data/IobTotalTest.java index 7a9814844f..8ba16da693 100644 --- a/app/src/test/java/info/nightscout/androidaps/data/IobTotalTest.java +++ b/app/src/test/java/info/nightscout/androidaps/data/IobTotalTest.java @@ -136,7 +136,7 @@ public class IobTotalTest { Assert.assertEquals(a.activity, j.getDouble("activity"), 0.0000001d); Assert.assertEquals(0, j.getLong("lastBolusTime")); Assert.assertEquals(now, DateUtil.fromISODateString(j.getString("time")).getTime(), 1000); - Assert.assertNotNull(j.getString("iobWithZeroTemp")); + Assert.assertNotNull(j.getJSONObject("iobWithZeroTemp")); } catch (Exception e) { Assert.fail("Exception: " + e.getMessage()); }