This commit is contained in:
Milos Kozak 2019-10-01 23:34:09 +02:00
parent 43f53865e7
commit 0139547499

View file

@ -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<ProfileSwitch> list = new ProfileIntervals<>();
@ -91,5 +93,6 @@ public class ProfileIntervalsTest {
AAPSMocker.mockStrings();
AAPSMocker.mockBus();
AAPSMocker.mockConfigBuilder();
AAPSMocker.mockTreatmentPlugin();
}
}