package Ġcom . lang ford apps . task manager . tasks display . domain Ċ Ċ import Ġcom . lang ford apps . task manager . commons . data . Tasks DataSource Ċ import Ġcom . lang ford apps . task manager . task alarm . Task Alarm Service . Task Alarm Service Handler Ċ import Ġcom . lang ford apps . task manager . task alarm . Task Alarm Service Actions Ċ import Ġcom . n ha ar man . mock it ok otlin 2 . mock Ċ import Ġcom . n ha ar man . mock it ok otlin 2 . verify Ċ import Ġcom . n ha ar man . mock it ok otlin 2 . verify No More Interactions Ċ import Ġkotlinx . coroutines . run Blocking Ċ import Ġorg . junit . Test Ċ Ċ class ĠMark Task As Completed UseCase Test Ġ{ ĊĊĠĠĠ Ġprivate Ġval Ġtask Alarm Service Handler : ĠTask Alarm Service Handler Ġ= Ġmock () ĊĠĠĠ Ġprivate Ġval Ġtasks DataSource : ĠTasks DataSource Ġ= Ġmock () ĊĠĠĠ Ġprivate Ġval Ġmocks Ġ= ĠarrayOf ( task Alarm Service Handler , Ġtasks DataSource ) ĊĊĠĠĠ Ġprivate Ġval Ġmark Task As Completed UseCase Ġ= ĠMark Task As Completed UseCase ( task Alarm Service Handler , Ġtasks DataSource ) ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġexecute () Ġ= Ġrun Blocking Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġfake Id Ġ= Ġ 0 L ĊĊĠĠĠĠĠĠĠ Ġmark Task As Completed UseCase . execute ( fake Id ) ĊĊĠĠĠĠĠĠĠ Ġverify ( tasks DataSource ). mark Task As Completed ( fake Id ) ĊĠĠĠĠĠĠĠ Ġverify ( task Alarm Service Handler ). enqueue Work ( Task Alarm Service Actions . REMOVE _ ONE , Ġfake Id ) ĊĠĠĠĠĠĠĠ Ġverify No More Interactions (* mocks ) ĊĠĠĠ Ġ} Ċ }