/* Ċ Ġ* ĠCopyright Ġ 2 0 2 0 ĠAnd rey ĠT ol pe ev Ċ Ġ* Ċ Ġ* ĠLicensed Ġunder Ġthe ĠApache ĠLicense , ĠVersion Ġ 2 . 0 Ġ( the Ġ" License "); Ċ Ġ* Ġyou Ġmay Ġnot Ġuse Ġthis Ġfile Ġexcept Ġin Ġcompliance Ġwith Ġthe ĠLicense . Ċ Ġ* ĠYou Ġmay Ġobtain Ġa Ġcopy Ġof Ġthe ĠLicense Ġat Ċ Ġ* Ċ Ġ* ĠĠĠ Ġhttp :// www . apache . org / licenses / LICENSE - 2 . 0 Ċ Ġ* Ċ Ġ* ĠUnless Ġrequired Ġby Ġapplicable Ġlaw Ġor Ġagreed Ġto Ġin Ġwriting , Ġsoftware Ċ Ġ* Ġdistributed Ġunder Ġthe ĠLicense Ġis Ġdistributed Ġon Ġan Ġ" AS ĠIS " ĠBASIS , Ċ Ġ* ĠWITHOUT ĠWARRANTIES ĠOR ĠCONDITIONS ĠOF ĠANY ĠKIND , Ġeither Ġexpress Ġor Ġimplied . Ċ Ġ* ĠSee Ġthe ĠLicense Ġfor Ġthe Ġspecific Ġlanguage Ġgoverning Ġpermissions Ġand Ċ Ġ* Ġlimitations Ġunder Ġthe ĠLicense . Ċ Ġ*/ Ċ Ċ package Ġcom . github . v ase 4 kin . team city app . running builds . presenter Ċ Ċ import Ġcom . github . v ase 4 kin . team city app . account . create . data . On Loading Listener Ċ import Ġcom . github . v ase 4 kin . team city app . base . list . extractor . Base Value Extractor Ċ import Ġcom . github . v ase 4 kin . team city app . build list . data . Build Interactor Ċ import Ġcom . github . v ase 4 kin . team city app . build list . router . Build List Router Ċ import Ġcom . github . v ase 4 kin . team city app . build list . tracker . Build List Tracker Ċ import Ġcom . github . v ase 4 kin . team city app . filter _ bottom _ sheet _ dialog . filter . Filter Ċ import Ġcom . github . v ase 4 kin . team city app . filter _ bottom _ sheet _ dialog . filter . Filter Provider Ċ import Ġcom . github . v ase 4 kin . team city app . overview . data . Build Details Ċ import Ġcom . github . v ase 4 kin . team city app . running builds . data . Running Build s DataManager Ċ import Ġcom . github . v ase 4 kin . team city app . running builds . view . Running Build ListView Ċ import Ġcom . github . v ase 4 kin . team city app . utils . eq Ċ import Ġorg . green robot . event bus . EventBus Ċ import Ġorg . junit . Before Ċ import Ġorg . junit . Test Ċ import Ġorg . junit . runner . RunWith Ċ import Ġorg . mockito . Mock Ċ import Ġorg . mockito . Mockito . verify Ċ import Ġorg . mockito . Mockito . verify No More Interactions Ċ import Ġorg . mockito . runners . Mockito JUnit Runner Ċ import Ġteam city app . libraries . on boarding . On boarding Manager Ċ Ċ @ RunWith ( Mockito JUnit Runner :: class ) Ċ class ĠRunning Build s List Presenter Impl Test Ġ{ ĊĊĠĠĠ Ġ@ Mock ĊĠĠĠ Ġprivate Ġlateinit Ġvar Ġloading Listener : ĠOn Loading Listener < List < Build Details >> ĊĠĠĠ Ġ@ Mock ĊĠĠĠ Ġprivate Ġlateinit Ġvar Ġview : ĠRunning Build ListView ĊĠĠĠ Ġ@ Mock ĊĠĠĠ Ġprivate Ġlateinit Ġvar Ġdata Manager : ĠRunning Build s DataManager ĊĠĠĠ Ġ@ Mock ĊĠĠĠ Ġprivate Ġlateinit Ġvar Ġtracker : ĠBuild List Tracker ĊĠĠĠ Ġ@ Mock ĊĠĠĠ Ġprivate Ġlateinit Ġvar Ġrouter : ĠBuild List Router ĊĠĠĠ Ġ@ Mock ĊĠĠĠ Ġprivate Ġlateinit Ġvar Ġvalue Extractor : ĠBase Value Extractor ĊĠĠĠ Ġ@ Mock ĊĠĠĠ Ġprivate Ġlateinit Ġvar Ġinter actor : ĠBuild Interactor ĊĠĠĠ Ġ@ Mock ĊĠĠĠ Ġprivate Ġlateinit Ġvar Ġon boarding Manager : ĠOn boarding Manager ĊĠĠĠ Ġ@ Mock ĊĠĠĠ Ġprivate Ġlateinit Ġvar Ġevent Bus : ĠEvent Bus ĊĠĠĠ Ġprivate Ġval Ġfilter Provider Ġ= ĠFilter Provider () ĊĠĠĠ Ġprivate Ġlateinit Ġvar Ġm Presenter : ĠRunning Build s List Presenter Impl ĊĊĠĠĠ Ġ@ Before ĊĠĠĠ Ġfun ĠsetUp () Ġ{ ĊĠĠĠĠĠĠĠ Ġm Presenter Ġ= ĠRunning Build s List Presenter Impl ( ĊĠĠĠĠĠĠĠĠĠĠĠ Ġview , ĊĠĠĠĠĠĠĠĠĠĠĠ Ġdata Manager , ĊĠĠĠĠĠĠĠĠĠĠĠ Ġtracker , ĊĠĠĠĠĠĠĠĠĠĠĠ Ġrouter , ĊĠĠĠĠĠĠĠĠĠĠĠ Ġvalue Extractor , ĊĠĠĠĠĠĠĠĠĠĠĠ Ġinter actor , ĊĠĠĠĠĠĠĠĠĠĠĠ Ġon boarding Manager , ĊĠĠĠĠĠĠĠĠĠĠĠ Ġfilter Provider , ĊĠĠĠĠĠĠĠĠĠĠĠ Ġevent Bus ĊĠĠĠĠĠĠĠ Ġ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġtest Load Data () Ġ{ ĊĠĠĠĠĠĠĠ Ġfilter Provider . running Build s Filter Ġ= ĠFilter . RUNNING _ ALL ĊĠĠĠĠĠĠĠ Ġm Presenter . load Data ( loading Listener , Ġfalse ) ĊĠĠĠĠĠĠĠ Ġverify ( data Manager ). load ( eq ( loading Listener ), Ġeq ( false )) ĊĠĠĠĠĠĠĠ Ġverify No More Interactions ( view , Ġdata Manager , Ġtracker , Ġrouter , Ġvalue Extractor , Ġinter actor ) ĊĠĠĠ Ġ} Ċ } Ċ