package Ġcom . th om ask io ko . github st arg azer . mapper Ċ Ċ import Ġcom . th om ask io ko . github st arg azer . mock . Mock Data . make Repo Response List Ċ import Ġcom . th om ask io ko . st arg azer . mapper . Repository Mapper . map Response To Entity List Ċ import Ġorg . assertj . core . api . Assertions . assertThat Ċ import Ġorg . junit . jupiter . api . Test Ċ Ċ internal Ġclass ĠRepository Mapper Test Ġ{ ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġgiven Response List _ then Data Is Mapped To Entity List () Ġ{ ĊĊĠĠĠĠĠĠĠ Ġval Ġrepos Response Ġ= Ġmake Repo Response List () ĊĠĠĠĠĠĠĠ Ġval Ġentity List Ġ= Ġmap Response To Entity List ( repos Response , Ġtrue ) ĊĊĠĠĠĠĠĠĠ Ġval Ġresponse Ġ= Ġrepos Response [ 0 ] ĊĠĠĠĠĠĠĠ Ġval Ġentity Ġ= Ġentity List [ 0 ] ĊĊĠĠĠĠĠĠĠ ĠassertThat ( repos Response . size ). isEqualTo ( entity List . size ) ĊĠĠĠĠĠĠĠ ĠassertThat ( response . id ). isEqualTo ( entity . id ) ĊĠĠĠĠĠĠĠ ĠassertThat ( response . name ). isEqualTo ( entity . name ) ĊĠĠĠĠĠĠĠ ĠassertThat ( response . owner . login ). isEqualTo ( entity . userName ) ĊĠĠĠĠĠĠĠ ĠassertThat ( response . description ). isEqualTo ( entity . description ) ĊĠĠĠĠĠĠĠ ĠassertThat ( response . st arg az ers Count ). isEqualTo ( entity . st arg az ers Count ) ĊĠĠĠĠĠĠĠ ĠassertThat ( response . fork s Count ). isEqualTo ( entity . fork s Count ) ĊĠĠĠĠĠĠĠ ĠassertThat ( response . contributors Url ). isEqualTo ( entity . contributors Url ) ĊĠĠĠĠĠĠĠ ĠassertThat ( response . created Date ). isEqualTo ( entity . created Date ) ĊĠĠĠĠĠĠĠ ĠassertThat ( response . updated Date ). isEqualTo ( entity . updated Date ) ĊĠĠĠ Ġ} Ċ } Ċ