diff --git a/app/src/test/java/info/nightscout/androidaps/data/ProfileIntervalsTest.java b/app/src/test/java/info/nightscout/androidaps/data/ProfileIntervalsTest.java index a43172e31e..71cf0a9720 100644 --- a/app/src/test/java/info/nightscout/androidaps/data/ProfileIntervalsTest.java +++ b/app/src/test/java/info/nightscout/androidaps/data/ProfileIntervalsTest.java @@ -16,6 +16,8 @@ import info.AAPSMocker; import info.nightscout.androidaps.MainApp; import info.nightscout.androidaps.db.ProfileSwitch; import info.nightscout.androidaps.plugins.configBuilder.ConfigBuilderPlugin; +import info.nightscout.androidaps.plugins.treatments.TreatmentService; +import info.nightscout.androidaps.plugins.treatments.TreatmentsPlugin; import info.nightscout.androidaps.utils.DateUtil; import info.nightscout.androidaps.utils.T; @@ -24,7 +26,7 @@ import info.nightscout.androidaps.utils.T; */ @RunWith(PowerMockRunner.class) -@PrepareForTest({MainApp.class, Bus.class, ConfigBuilderPlugin.class}) +@PrepareForTest({MainApp.class, Bus.class, ConfigBuilderPlugin.class, TreatmentsPlugin.class, TreatmentService.class}) public class ProfileIntervalsTest { private final long startDate = DateUtil.now(); ProfileIntervals list = new ProfileIntervals<>(); @@ -91,5 +93,6 @@ public class ProfileIntervalsTest { AAPSMocker.mockStrings(); AAPSMocker.mockBus(); AAPSMocker.mockConfigBuilder(); + AAPSMocker.mockTreatmentPlugin(); } }