fix tests
This commit is contained in:
parent
291c85f69c
commit
112d3b50d1
|
@ -138,7 +138,6 @@ class ConstraintsCheckerImplTest : TestBaseWithProfile() {
|
||||||
insightDbHelper = InsightDbHelper(insightDatabaseDao)
|
insightDbHelper = InsightDbHelper(insightDatabaseDao)
|
||||||
danaPump = DanaPump(aapsLogger, sp, dateUtil, instantiator, decimalFormatter)
|
danaPump = DanaPump(aapsLogger, sp, dateUtil, instantiator, decimalFormatter)
|
||||||
objectivesPlugin = ObjectivesPlugin(injector, aapsLogger, rh, activePlugin, sp, config)
|
objectivesPlugin = ObjectivesPlugin(injector, aapsLogger, rh, activePlugin, sp, config)
|
||||||
objectivesPlugin.onStart()
|
|
||||||
comboPlugin = ComboPlugin(injector, aapsLogger, rxBus, rh, profileFunction, sp, commandQueue, pumpSync, dateUtil, ruffyScripter, uiInteraction)
|
comboPlugin = ComboPlugin(injector, aapsLogger, rxBus, rh, profileFunction, sp, commandQueue, pumpSync, dateUtil, ruffyScripter, uiInteraction)
|
||||||
danaRPlugin = DanaRPlugin(
|
danaRPlugin = DanaRPlugin(
|
||||||
injector, aapsLogger, aapsSchedulers, rxBus, context, rh, constraintChecker, activePlugin, sp, commandQueue, danaPump, dateUtil, fabricPrivacy, pumpSync,
|
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(openAPSAMAPlugin)
|
||||||
constraintsPluginsList.add(openAPSSMBPlugin)
|
constraintsPluginsList.add(openAPSSMBPlugin)
|
||||||
`when`(activePlugin.getSpecificPluginsListByInterface(PluginConstraints::class.java)).thenReturn(constraintsPluginsList)
|
`when`(activePlugin.getSpecificPluginsListByInterface(PluginConstraints::class.java)).thenReturn(constraintsPluginsList)
|
||||||
objectivesPlugin.onStart()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Combo & Objectives
|
// Combo & Objectives
|
||||||
|
|
|
@ -40,7 +40,6 @@ class ObjectivesPluginTest : TestBase() {
|
||||||
|
|
||||||
@BeforeEach fun prepareMock() {
|
@BeforeEach fun prepareMock() {
|
||||||
objectivesPlugin = ObjectivesPlugin(injector, aapsLogger, rh, activePlugin, sp, config)
|
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, 9)).thenReturn("Objective 9 not started")
|
||||||
`when`(rh.gs(R.string.objectivenotstarted, 8)).thenReturn("Objective 8 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")
|
`when`(rh.gs(R.string.objectivenotstarted, 6)).thenReturn("Objective 6 not started")
|
||||||
|
|
Loading…
Reference in a new issue