package Ġcom . github . j actor . persistence . dto Ċ Ċ import Ġorg . assertj . core . api . Assertions . assertThat Ċ import Ġorg . junit . jupiter . api . Assertions . assert All Ċ import Ġorg . junit . jupiter . api . DisplayName Ċ import Ġorg . junit . jupiter . api . Test Ċ import Ġjava . time . LocalDate Ċ import Ġjava . time . LocalDateTime Ċ Ċ @ DisplayName (" A ĠBlog Dto ") Ċ internal Ġclass ĠBlog Dto Test Ġ{ ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġ` should Ġhave Ġa Ġcopy Ġconstructor `() Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġblog Dto Ġ= ĠBlog Dto () ĊĠĠĠĠĠĠĠ Ġblog Dto . created Ġ= ĠLocalDate . now () ĊĠĠĠĠĠĠĠ Ġblog Dto . title Ġ= Ġ" title " ĊĠĠĠĠĠĠĠ Ġblog Dto . user Internal Ġ= ĠUser Internal Dto () ĊĊĠĠĠĠĠĠĠ Ġval Ġ(_, Ġcreated , Ġtitle , Ġuser Internal ) Ġ= ĠBlog Dto ( blog Dto . persistent Dto , Ġblog Dto ) ĊĊĠĠĠĠĠĠĠ Ġassert All ( ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ{ ĠassertThat ( created ). ` as ` (" created "). isEqualTo ( blog Dto . created ) Ġ}, ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ{ ĠassertThat ( title ). ` as ` (" title "). isEqualTo ( blog Dto . title ) Ġ}, ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ{ ĠassertThat ( user Internal ). ` as ` (" user "). isEqualTo ( blog Dto . user Internal ) Ġ} ĊĠĠĠĠĠĠĠ Ġ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġ` should Ġgive Ġvalues Ġto ĠPersistent Dto `() Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġpersistent Dto Ġ= ĠPersistent Dto () ĊĠĠĠĠĠĠĠ Ġpersistent Dto . created By Ġ= Ġ" j actor " ĊĠĠĠĠĠĠĠ Ġpersistent Dto . time Of Creation Ġ= ĠLocalDateTime . now () ĊĠĠĠĠĠĠĠ Ġpersistent Dto . id Ġ= Ġ 1 L ĊĠĠĠĠĠĠĠ Ġpersistent Dto . modified By Ġ= Ġ" tip " ĊĠĠĠĠĠĠĠ Ġpersistent Dto . time Of Modification Ġ= ĠLocalDateTime . now () ĊĊĠĠĠĠĠĠĠ Ġval Ġ( id , Ġcreated By , Ġtime Of Creation , Ġmodified By , Ġtime Of Modification ) Ġ= ĠBlog Dto ( persistent Dto , ĠBlog Dto ()). persistent Dto ĊĊĠĠĠĠĠĠĠ Ġassert All ( ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ{ ĠassertThat ( created By ). ` as ` (" created Ġby "). isEqualTo ( persistent Dto . created By ) Ġ}, ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ{ ĠassertThat ( time Of Creation ). ` as ` (" creation Ġtime "). isEqualTo ( persistent Dto . time Of Creation ) Ġ}, ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ{ ĠassertThat ( id ). ` as ` (" id "). isEqualTo ( persistent Dto . id ) Ġ}, ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ{ ĠassertThat ( modified By ). ` as ` (" updated Ġby "). isEqualTo ( persistent Dto . modified By ) Ġ}, ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ{ ĠassertThat ( time Of Modification ). ` as ` (" updated Ġtime "). isEqualTo ( persistent Dto . time Of Modification ) Ġ} ĊĠĠĠĠĠĠĠ Ġ) ĊĠĠĠ Ġ} Ċ } Ċ