fix tests

This commit is contained in:
Milos Kozak 2018-08-05 22:55:08 +02:00
parent 2bc07e3277
commit cd71597baa
2 changed files with 2 additions and 1 deletions

View file

@ -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() {

View file

@ -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" +