From 808a4177ca1c9f3c3de730ec7df1a811da5793f7 Mon Sep 17 00:00:00 2001 From: Milos Kozak Date: Sun, 12 May 2019 14:36:14 +0200 Subject: [PATCH] fix tests --- .../androidaps/interfaces/ConstraintsCheckerTest.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/test/java/info/nightscout/androidaps/interfaces/ConstraintsCheckerTest.java b/app/src/test/java/info/nightscout/androidaps/interfaces/ConstraintsCheckerTest.java index fbbd72f064..edfd30180a 100644 --- a/app/src/test/java/info/nightscout/androidaps/interfaces/ConstraintsCheckerTest.java +++ b/app/src/test/java/info/nightscout/androidaps/interfaces/ConstraintsCheckerTest.java @@ -283,6 +283,8 @@ public class ConstraintsCheckerTest { AAPSMocker.mockSP(); AAPSMocker.mockCommandQueue(); + when(mainApp.getPackageName()).thenReturn("info.nightscout.androidaps"); + // RS constructor when(SP.getString(R.string.key_danars_address, "")).thenReturn("");