package Ġcom . th om ask io ko . pay bill manager . cache . mapper Ċ Ċ import Ġcom . th om ask io ko . pay bill manager . cache . factory . B ills Cached Factory Ċ import Ġcom . th om ask io ko . pay bill manager . cache . model . Cached Bill Ċ import Ġcom . th om ask io ko . pay bill manager . data . model . Bill Entity Ċ import Ġorg . junit . Test Ċ import Ġorg . junit . runner . RunWith Ċ import Ġorg . junit . runners . JUnit 4 Ċ import Ġkotlin . test . assertEquals Ċ Ċ @ RunWith ( JUnit 4 :: class ) Ċ class ĠCached Bill Mapper Test Ġ{ ĊĊĠĠĠ Ġprivate Ġval Ġmapper Ġ= ĠCached Bill Mapper () ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġmap From Cached Maps Data () Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġmodel Ġ= ĠB ills Cached Factory . make Cached Bill () ĊĠĠĠĠĠĠĠ Ġval Ġentity Ġ= Ġmapper . map From Cached ( model ) ĊĊĠĠĠĠĠĠĠ Ġassert Equal Data ( model , Ġentity ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġmap To Cached Maps Data () Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġentity Ġ= ĠB ills Cached Factory . make Bill Entity () ĊĠĠĠĠĠĠĠ Ġval Ġmodel Ġ= Ġmapper . map To Cached ( entity ) ĊĊĠĠĠĠĠĠĠ Ġassert Equal Data ( model , Ġentity ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġprivate Ġfun Ġassert Equal Data ( model : ĠCached Bill , Ġentity : ĠBill Entity ) Ġ{ ĊĠĠĠĠĠĠĠ ĠassertEquals ( model . id , Ġentity . bill Id ) ĊĠĠĠĠĠĠĠ ĠassertEquals ( model . bill Name , Ġentity . bill Name ) ĊĠĠĠĠĠĠĠ ĠassertEquals ( model . pay bill Number , Ġentity . pay bill Number ) ĊĠĠĠĠĠĠĠ ĠassertEquals ( model . account Number , Ġentity . account Number ) ĊĠĠĠĠĠĠĠ ĠassertEquals ( model . categoryId , Ġentity . categoryId ) ĊĠĠĠĠĠĠĠ ĠassertEquals ( model . reminder Date , Ġentity . reminder Date ) ĊĠĠĠ Ġ} Ċ }