fix test
This commit is contained in:
parent
43f53865e7
commit
0139547499
1 changed files with 4 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue