diff --git a/app/src/test/java/info/AAPSMocker.java b/app/src/test/java/info/AAPSMocker.java index 0bb6890054..2dee4a68f9 100644 --- a/app/src/test/java/info/AAPSMocker.java +++ b/app/src/test/java/info/AAPSMocker.java @@ -92,6 +92,7 @@ public class AAPSMocker { when(MainApp.gs(R.string.minago)).thenReturn("%d min ago"); when(MainApp.gs(R.string.hoursago)).thenReturn("%.1fh ago"); when(MainApp.gs(R.string.careportal_profileswitch)).thenReturn("Profile Switch"); + when(MainApp.gs(R.string.configbuilder_insulin)).thenReturn("Insulin"); } public static MainApp mockMainApp() { diff --git a/app/src/test/java/info/nightscout/androidaps/data/PumpEnactResultTest.java b/app/src/test/java/info/nightscout/androidaps/data/PumpEnactResultTest.java index 9889c9185a..7ce14c2281 100644 --- a/app/src/test/java/info/nightscout/androidaps/data/PumpEnactResultTest.java +++ b/app/src/test/java/info/nightscout/androidaps/data/PumpEnactResultTest.java @@ -109,7 +109,7 @@ public class PumpEnactResultTest { Assert.assertEquals("Success: false\n" + "Enacted: true\n" + "Comment: AAA\n" + - "SMB: 10.0 U", per.toString()); + "Insulin: 10.0 U", per.toString()); per = new PumpEnactResult().enacted(true).isTempCancel(true).comment("AAA"); Assert.assertEquals("Success: false\n" +