package Ġcom . eric amp ire . android . android study case . data . datasource . anim ator Ċ Ċ import Ġcom . eric amp ire . android . android study case . domain . entity . Animator ApiResponse Ċ import Ġcom . eric amp ire . android . android study case . util . Api Url Ċ import Ġcom . eric amp ire . android . android study case . util . Preview Data Ċ import Ġcom . eric amp ire . android . android study case . util . test . Main Coroutine Extension Ċ import Ġio . ktor . client .* Ċ import Ġio . ktor . client . engine .* Ċ import Ġio . ktor . client . engine . mock .* Ċ import Ġio . ktor . client . request .* Ċ import Ġkotlinx . coroutines . Experimental Cor outines Api Ċ import Ġkotlinx . coroutines . run Blocking Ċ import Ġkotlinx . coroutines . test . run Blocking Test Ċ import Ġorg . junit . jupiter . api . BeforeEach Ċ import Ġorg . junit . jupiter . api . Disabled Ċ import Ġorg . junit . jupiter . api . Test Ċ import Ġorg . junit . jupiter . api . assert Throws Ċ import Ġorg . junit . jupiter . api . extension . Extend With Ċ Ċ @ Experimental Cor outines Api Ċ @ Extend With ( Main Coroutine Extension :: class ) Ċ class ĠRemove Animator DataSource Test ( Ċ Ċ ) Ġ{ ĊĊĠ Ġ// ĠS UT ĊĠ Ġprivate Ġlateinit Ġvar ĠdataSource : ĠRemote Animator DataSource ĊĊĠ Ġ// ĠDOC 's ĊĠ Ġprivate Ġlateinit Ġvar Ġclient : ĠHttpClient ĊĊĠ Ġ@ BeforeEach ĊĠ Ġfun Ġsetup () Ġ{ ĊĠĠĠ Ġval Ġengine Ġ= ĠMock Engine . config Ġ{ ĊĠĠĠĠĠ Ġadd Handler Ġ{ Ġrespond Ok (" first ") Ġ} ĊĠĠĠ Ġ} ĊĠĠĠ Ġclient Ġ= ĠHttpClient ( engine ) ĊĠĠĠ ĠdataSource Ġ= ĠRemote Animator DataSource ( client ) ĊĠ Ġ} ĊĊĠ Ġ@ Test ĊĠ Ġfun Ġsave Animator () Ġ= Ġrun Blocking Test Ġ{ ĊĠĠĠ ĠassertThrows < NotImplemented Error > Ġ{ ĊĠĠĠĠĠ ĠdataSource . save ( Preview Data . Animator . data . first ()) ĊĠĠĠ Ġ} ĊĠ Ġ} ĊĊĠ Ġ@ Test ĊĠ Ġ@ Disabled ĊĠ Ġfun Ġfind Animator () Ġ= Ġrun Blocking Test Ġ{ ĊĠĠĠ Ġrun Blocking Ġ{ ĊĠĠĠĠĠ Ġval Ġdata Ġ= Ġclient . get < Animator ApiResponse >( Api Url . Animator . featured ) ĊĠĠĠ Ġ} ĊĊĊĠĠĠ Ġ// assertEquals ( data , Ġ" first ") ĊĠ Ġ} Ċ }