fix tests
This commit is contained in:
parent
2bc07e3277
commit
cd71597baa
2 changed files with 2 additions and 1 deletions
|
@ -92,6 +92,7 @@ public class AAPSMocker {
|
||||||
when(MainApp.gs(R.string.minago)).thenReturn("%d min ago");
|
when(MainApp.gs(R.string.minago)).thenReturn("%d min ago");
|
||||||
when(MainApp.gs(R.string.hoursago)).thenReturn("%.1fh 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.careportal_profileswitch)).thenReturn("Profile Switch");
|
||||||
|
when(MainApp.gs(R.string.configbuilder_insulin)).thenReturn("Insulin");
|
||||||
}
|
}
|
||||||
|
|
||||||
public static MainApp mockMainApp() {
|
public static MainApp mockMainApp() {
|
||||||
|
|
|
@ -109,7 +109,7 @@ public class PumpEnactResultTest {
|
||||||
Assert.assertEquals("Success: false\n" +
|
Assert.assertEquals("Success: false\n" +
|
||||||
"Enacted: true\n" +
|
"Enacted: true\n" +
|
||||||
"Comment: AAA\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");
|
per = new PumpEnactResult().enacted(true).isTempCancel(true).comment("AAA");
|
||||||
Assert.assertEquals("Success: false\n" +
|
Assert.assertEquals("Success: false\n" +
|
||||||
|
|
Loading…
Reference in a new issue