package Ġme . tat oc aster . covid stats Ċ Ċ import Ġandroidx . test . espress o . Esp ress o . on View Ċ import Ġandroidx . test . espress o . action . View Actions . click Ċ import Ġandroidx . test . espress o . assertion . View Assertions . matches Ċ import Ġandroidx . test . espress o . matcher . View Matchers .* Ċ import Ġme . tat oc aster . core _ android _ testing . Instrument ed Test Application Ċ import Ġme . tat oc aster . core _ android _ testing . base . Base Instrument ed Test Ċ import Ġme . tat oc aster . covid stats . di . Cov id Stats Module Ċ import Ġme . tat oc aster . covid stats . di . D agger Cov id Stats Test Component Ċ import Ġme . tat oc aster . covid stats . inter actors . Cov id Stats Interactor Ċ import Ġme . tat oc aster . covid stats . screens . Cov id Stats Fragment Ċ import Ġorg . hamcrest . Core Matchers . not Ċ import Ġorg . junit . Test Ċ import Ġjavax . inject . Inject Ċ Ċ class ĠC ov id Stats Flow Test Ġ: ĠBase Instrument ed Test () Ġ{ ĊĠĠĠ Ġ@ Inject ĊĠĠĠ Ġlateinit Ġvar Ġinter actor : ĠC ov id Stats Interactor ĊĊĠĠĠ Ġoverride Ġfun Ġon Prepare Injection () Ġ{ ĊĠĠĠĠĠĠĠ ĠD agger Cov id Stats Test Component . factory () ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. create ( ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠC ov id Stats Module , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠInstrument ed Test Application . app Component ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. inject ( this ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġon Request Fragment () Ġ= ĠC ov id Stats Fragment . newInstance () ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġtest Are Numbers Loaded () Ġ{ ĊĠĠĠĠĠĠĠ Ġon View ( with Id ( R . id . b Refresh Stats )). perform ( click ()) ĊĠĠĠĠĠĠĠ Ġon View ( with Id ( R . id . tv Total Death Count )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. check ( matches ( not ( with Text ("")) )) ĊĠĠĠ Ġ} Ċ Ċ }