package Ġcom . example . weather app . model Ċ Ċ import Ġandroid . content . Context Ċ import Ġcom . example . weather app . Weather Contract Ċ import Ġcom . example . weather app . data . Weather Info Model Ċ import Ġcom . example . weather app . db . Database Handler Ċ import Ġjunit . framework . TestCase Ċ 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 . junit . Mockito JUnit Runner Ċ Ċ /** Ċ Ġ* ĠCreated Ġby ĠDie Hard _ 0 4 Ġon Ġ 2 0 - 0 4 - 2 0 2 1 . Ċ Ġ*/ Ċ @ RunWith ( Mockito JUnit Runner :: class ) Ċ class ĠWeather Model Impl Test Ġ: ĠTestCase () Ġ{ ĊĊĠĠĠ Ġlateinit Ġvar Ġweather Model Impl : ĠWeather Model Impl ĊĊĠĠĠ Ġ@ Mock ĊĠĠĠ Ġlateinit Ġvar Ġcontext : ĠContext ĊĊĠĠĠ Ġ@ Mock ĊĠĠĠ Ġlateinit Ġvar Ġpresenter : ĠWeather Contract . Presenter ĊĊĠĠĠ Ġ@ Mock ĊĠĠĠ Ġlateinit Ġvar Ġdatabase Handler : ĠDatabase Handler ĊĊĠĠĠ Ġ@ Before ĊĠĠĠ Ġfun Ġon Setup () Ġ{ ĊĠĠĠĠĠĠĠ Ġweather Model Impl Ġ= ĠWeather Model Impl ( context , Ġpresenter ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġtest GetCurrent Saved Time () Ġ{ ĊĠĠĠ Ġ} Ċ }