/* Ċ Ġ* ĠCopyright Ġ( C ) Ġ 2 0 2 2 . Ġd vt . co . za Ċ Ġ* Ċ Ġ* Ġ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 . dv t test . hi weather . data . mapper Ċ Ċ import Ġcom . dv t test . hi weather . data . Fake Data . fake Current Forecast Ċ import Ġcom . dv t test . hi weather . data . Fake Data . fake Forecast Ċ import Ġcom . dv t test . hi weather . data . api . model . Current Forecast Ċ import Ġcom . dv t test . hi weather . data . db . entities . Forecast Ċ import Ġcom . google . common . truth . Truth . assertThat Ċ import Ġio . mock k . co Every Ċ import Ġio . mock k . mock k Ċ import Ġorg . junit . Before Ċ import Ġorg . junit . Test Ċ Ċ class ĠCurrent Forecast Mapper Test Ġ{ ĊĊĠĠĠ Ġprivate Ġval Ġcurrent Forecast Ġ= Ġmock k < Current Forecast >() ĊĠĠĠ Ġprivate Ġlateinit Ġvar Ġmapper : ĠCurrent Forecast Mapper ĊĠĠĠ Ġprivate Ġlateinit Ġvar Ġfake Forecast List : ĠArrayList < Forecast > ĊĊĠĠĠ Ġ@ Before ĊĠĠĠ Ġfun ĠsetUp () Ġ{ ĊĠĠĠĠĠĠĠ Ġfake Forecast List Ġ= Ġarray ListOf () ĊĠĠĠĠĠĠĠ Ġfake Forecast List . add ( fake Forecast ) ĊĊĠĠĠĠĠĠĠ Ġmapper Ġ= ĠCurrent Forecast Mapper () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġ` verify ĠCurrent Forecast Mapper Ġtransforms ĠCurrent Forecast Ġto ĠFore cast `() Ġ{ ĊĠĠĠĠĠĠĠ Ġco Every Ġ{ Ġmapper . transform To Domain ( current Forecast ) Ġ} Ġreturns Ġfake Forecast List ĊĠĠĠĠĠĠĠ Ġval Ġforecast Ġ= Ġmapper . transform To Domain ( fake Current Forecast ) ĊĊĠĠĠĠĠĠĠ ĠassertThat ( forecast ). isNot EqualTo ( null ) ĊĠĠĠĠĠĠĠ ĠassertThat ( forecast ). isEqualTo ( fake Forecast List ) ĊĠĠĠ Ġ} Ċ } Ċ