/** Ċ Ġ* Ġ ĠDesign ed Ġand Ġdeveloped Ġby ĠK ola ĠE mi ola Ċ Ġ* Ċ Ġ* Ġ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 . k ola emi ola . data . repository Ċ Ċ import Ġcom . k ola emi ola . data . mapper . Ven ues Mapper Ċ import Ġcom . k ola emi ola . data . utils . Base Test Ċ import Ġcom . k ola emi ola . domain . repository . Get Restaurant Repository Ċ import Ġkotlinx . coroutines . flow . first Ċ import Ġkotlinx . coroutines . run Blocking Ċ import Ġcom . google . common . truth . Truth . assertThat Ċ import Ġcom . k ola emi ola . data . utils . Mock Venue Data Ċ import Ġorg . junit . Before Ċ import Ġorg . junit . Test Ċ Ċ internal Ġclass ĠGet Restaurant Repository Impl Test Ġ: ĠBaseTest () Ġ{ ĊĠ Ġprivate Ġlateinit Ġvar Ġget Restaurant Repository : ĠGet Restaurant Repository ĊĠ Ġprivate Ġval Ġven ues Mapper Ġ= ĠV en ues Mapper () ĊĊĠ Ġ@ Before ĊĠ Ġoverride Ġfun Ġsetup () Ġ{ ĊĠĠĠ Ġsuper . setup () ĊĠĠĠ Ġget Restaurant Repository Ġ= ĠGet Restaurant Repository Impl ( four Square API , Ġven ues Mapper ) ĊĠ Ġ} ĊĊĠ Ġ@ Test ĊĠ Ġfun Ġ` should Ġreturn Ġven ues Ġdata `() Ġ= Ġrun Blocking Ġ{ ĊĠĠĠ Ġval Ġven ues Response Ġ= Ġget Restaurant Repository . get Rest aurants (" 4 0 . 7 4 8 4 ,- 7 3 . 9 8 5 7 ", ĊĠĠĠĠĠ Ġ" new + y ork ", Ġ 2 5 0 , Ġ 1 0 ). first () ĊĠĠĠ ĠassertThat ( ven ues Response ). isNotEmpty () ĊĠ Ġ} ĊĊĠ Ġ@ Test ĊĠ Ġfun Ġ` should Ġreturn Ġcorrect Ġven ue Ġdata `() Ġ= Ġrun Blocking Ġ{ ĊĠĠĠ Ġval Ġven ues Response Ġ= Ġget Restaurant Repository . get Rest aurants (" 4 0 . 7 4 8 4 ,- 7 3 . 9 8 5 7 ", ĊĠĠĠĠĠ Ġ" new + y ork ", Ġ 2 5 0 , Ġ 1 0 ). first (). first () ĊĠĠĠĠĠ ĠassertThat ( ven ues Response . name ). isEqualTo ( Mock Venue Data . venue Result . name ) ĊĠĠĠĠĠ ĠassertThat ( ven ues Response . id ). isEqualTo ( Mock Venue Data . venue Result . id ) ĊĠĠĠĠĠ ĠassertThat ( ven ues Response . location Model . address ). isEqualTo ( Mock Venue Data . venue Result . location . address ) ĊĠĠĠĠĠ ĠassertThat ( ven ues Response . location Model . cross Street ). isEqualTo ( Mock Venue Data . venue Result . location . cross Street ) ĊĠĠĠĠĠ ĠassertThat ( ven ues Response . location Model . long ). isEqualTo ( Mock Venue Data . venue Result . location . lng ) ĊĠĠĠĠĠ ĠassertThat ( ven ues Response . location Model . lat ). isEqualTo ( Mock Venue Data . venue Result . location . lat ) ĊĠ Ġ} Ċ } Ċ