package Ġru . ns u . fit . as boost er . saved Ċ Ċ import Ġcom . n ha ar man . mock it ok otlin 2 . do Return Ċ import Ġcom . n ha ar man . mock it ok otlin 2 . eq Ċ 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 Ġkotlinx . coroutines . Coroutine Scope Ċ import Ġkotlinx . coroutines . Dispatch ers Ċ import Ġorg . junit . Test Ċ import Ġru . ns u . fit . as boost er . repository . entity . Audio Info Ċ import Ġru . ns u . fit . as boost er . saved . model . Track Ċ import Ġru . ns u . fit . as boost er . saved . model . Tracks Repository Ċ import Ġru . ns u . fit . as boost er . saved . model . entity . Effect Info Ċ import Ġru . ns u . fit . as boost er . base . navigation . Router Ċ import Ġru . ns u . fit . as boost er . map pers . View Items Mapper Ċ Ċ class ĠSaved Presenter Test Ġ{ ĊĠĠĠ Ġprivate Ġval Ġsaved View : ĠSaved View Ġ= Ġmock () ĊĊĠĠĠ Ġprivate Ġval Ġaudio Info : ĠAudio Info Ġ= Ġmock () ĊĠĠĠ Ġprivate Ġval Ġeffect Info : ĠEffect Info Ġ= Ġmock () ĊĠĠĠ Ġprivate Ġval Ġtrack : ĠTrack Ġ= Ġmock Ġ{ ĊĠĠĠĠĠĠĠ Ġon Ġ{ Ġaudio Info Ġ} Ġdo Return Ġaudio Info ĊĠĠĠĠĠĠĠ Ġon Ġ{ Ġeffects Info Ġ} Ġdo Return ĠlistOf ( effect Info ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġprivate Ġval Ġtracks Repository : ĠTrack s Repository Ġ= Ġmock Ġ{ ĊĠĠĠĠĠĠĠ Ġon Ġ{ Ġget Tracks () Ġ} Ġdo Return ĠlistOf ( track ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġprivate Ġval Ġview Items Mapper : ĠView Items Mapper Ġ= Ġmock () ĊĠĠĠ Ġprivate Ġval Ġui Scope : ĠCor outine Scope Ġ= ĠCor outine Scope ( Dispatch ers . Un conf ined ) ĊĠĠĠ Ġprivate Ġval Ġrouter : ĠRouter Ġ= Ġmock () ĊĊĠĠĠ Ġprivate Ġval Ġsaved Presenter Ġ= ĠSaved Presenter ( ĊĠĠĠĠĠĠĠ Ġsaved View , ĊĠĠĠĠĠĠĠ Ġtracks Repository , ĊĠĠĠĠĠĠĠ Ġview Items Mapper , ĊĠĠĠĠĠĠĠ Ġui Scope , ĊĠĠĠĠĠĠĠ Ġrouter ĊĠĠĠ Ġ) ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġ` on Ġcreate Ġtest `() Ġ{ ĊĠĠĠĠĠĠĠ Ġsaved Presenter . onCreate () ĊĊĠĠĠĠĠĠĠ Ġverify ( saved View ). show Progress () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġ` on Ġshow Ġtest `() Ġ{ ĊĠĠĠĠĠĠĠ Ġsaved Presenter . on Show () ĊĊĠĠĠĠĠĠĠ Ġverify ( tracks Repository ). get Tracks () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġ` on Ġaudio Ġclick `() Ġ{ ĊĠĠĠĠĠĠĠ Ġsaved Presenter . on Show () ĊĠĠĠĠĠĠĠ Ġsaved Presenter . on Audio Click ( 0 ) ĊĊĠĠĠĠĠĠĠ Ġverify ( router ). open Player ( eq ( track )) ĊĠĠĠ Ġ} Ċ }