package Ġorg . smart register . path . reporting . register Ċ Ċ import Ġandroid . app . Activity Ċ import Ġio . mock k . just Run Ċ import Ġio . mock k . mock k Class Ċ import Ġio . mock k . un mock k All Ċ import Ġorg . junit . After Ċ import Ġorg . junit . Assert . assertNotNull Ċ import Ġorg . junit . Before Ċ import Ġorg . junit . Test Ċ import Ġorg . smart register . path . reporting . Report Group Ċ Ċ class ĠReport Register Presenter Test Ġ{ ĊĊĠĠĠ Ġprivate Ġval Ġview : ĠReport Register Contract . View Ġ= Ġmock k Class ( Report Register Activity :: class , Ġrelax ed Ġ= Ġtrue ) ĊĠĠĠ Ġprivate Ġlateinit Ġvar Ġreport Register Presenter : ĠReport Register Presenter ĊĊĠĠĠ Ġ@ Before ĊĠĠĠ Ġfun Ġ` Before Ġevery Ġtest `() Ġ{ ĊĠĠĠĠĠĠĠ Ġreport Register Presenter Ġ= ĠReport Register Presenter ( view ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ After ĊĠĠĠ Ġfun Ġ` After Ġevery Ġtest `() Ġ{ ĊĠĠĠĠĠĠĠ Ġun mock k All () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġ` Should Ġstart Ġmonthly Ġreport `() Ġ{ ĊĠĠĠĠĠĠĠ Ġjust Run Ġ{ Ġ( view Ġas ĠActivity ). startActivity ( any ()) Ġ} ĊĠĠĠĠĠĠĠ Ġreport Register Presenter . start Report ( Report Group . MONTH LY _ REPORT S ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġ` Should Ġstart Ġannual Ġcoverage Ġreport `() Ġ{ ĊĠĠĠĠĠĠĠ Ġjust Run Ġ{ Ġ( view Ġas ĠActivity ). startActivity ( any ()) Ġ} ĊĠĠĠĠĠĠĠ Ġreport Register Presenter . start Report ( Report Group . AN N UAL _ COVERAGE _ REPORT S ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġ` Should Ġreturn Ġnon Ġnull Ġview `() Ġ{ ĊĠĠĠĠĠĠĠ ĠassertNotNull ( report Register Presenter . report Register View ) ĊĠĠĠ Ġ} Ċ }