fix tests

This commit is contained in:
Milos Kozak 2023-11-08 18:45:22 +01:00
parent 291c85f69c
commit 112d3b50d1
2 changed files with 0 additions and 3 deletions

View file

@ -138,7 +138,6 @@ class ConstraintsCheckerImplTest : TestBaseWithProfile() {
insightDbHelper = InsightDbHelper(insightDatabaseDao)
danaPump = DanaPump(aapsLogger, sp, dateUtil, instantiator, decimalFormatter)
objectivesPlugin = ObjectivesPlugin(injector, aapsLogger, rh, activePlugin, sp, config)
objectivesPlugin.onStart()
comboPlugin = ComboPlugin(injector, aapsLogger, rxBus, rh, profileFunction, sp, commandQueue, pumpSync, dateUtil, ruffyScripter, uiInteraction)
danaRPlugin = DanaRPlugin(
injector, aapsLogger, aapsSchedulers, rxBus, context, rh, constraintChecker, activePlugin, sp, commandQueue, danaPump, dateUtil, fabricPrivacy, pumpSync,
@ -227,7 +226,6 @@ class ConstraintsCheckerImplTest : TestBaseWithProfile() {
constraintsPluginsList.add(openAPSAMAPlugin)
constraintsPluginsList.add(openAPSSMBPlugin)
`when`(activePlugin.getSpecificPluginsListByInterface(PluginConstraints::class.java)).thenReturn(constraintsPluginsList)
objectivesPlugin.onStart()
}
// Combo & Objectives

View file

@ -40,7 +40,6 @@ class ObjectivesPluginTest : TestBase() {
@BeforeEach fun prepareMock() {
objectivesPlugin = ObjectivesPlugin(injector, aapsLogger, rh, activePlugin, sp, config)
objectivesPlugin.onStart()
`when`(rh.gs(R.string.objectivenotstarted, 9)).thenReturn("Objective 9 not started")
`when`(rh.gs(R.string.objectivenotstarted, 8)).thenReturn("Objective 8 not started")
`when`(rh.gs(R.string.objectivenotstarted, 6)).thenReturn("Objective 6 not started")