package Ġde . fl ap do od le . types Ċ Ċ import Ġde . fl ap do od le . photos ync . sync . Sync Command Ċ import Ġde . fl ap do od le . photos ync . ui . sync . Sync Group Ċ import Ġorg . assertj . core . api . With Assertions Ċ import Ġorg . junit . jupiter . api . Test Ċ import Ġjava . nio . file . Path Ċ Ċ internal Ġclass ĠGroup ed Test Ġ: ĠWith Assertions Ġ{ ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġsample () Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġfirst Ġ= ĠSync Group . Sync Entry ( ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠSync Command . Copy ( src Ġ= ĠPath . of (""), Ġdst Ġ= ĠPath . of (" ")), ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠSync Group . Status . Not Exc uted ĊĠĠĠĠĠĠĠ Ġ) ĊĠĠĠĠĠĠĠ Ġval Ġsecond Ġ= ĠSync Group . Sync Entry ( ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠSync Command . Copy ( src Ġ= ĠPath . of (" a "), Ġdst Ġ= ĠPath . of (" b ")), ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠSync Group . Status . Successful ĊĠĠĠĠĠĠĠ Ġ) ĊĠĠĠĠĠĠĠ Ġval Ġthird Ġ= ĠSync Group . Sync Entry ( ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠSync Command . Copy ( src Ġ= ĠPath . of (" b "), Ġdst Ġ= ĠPath . of (" b ")), ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠSync Group . Status . Successful ĊĠĠĠĠĠĠĠ Ġ) ĊĊĠĠĠĠĠĠĠ Ġval Ġfirst Group Ġ= ĠSync Group ( commands Ġ= ĠlistOf ( first , Ġsecond )) ĊĠĠĠĠĠĠĠ Ġval Ġsecond Group Ġ= ĠSync Group ( commands Ġ= ĠlistOf ( third )) ĊĊĠĠĠĠĠĠĠ Ġval Ġlist Ġ= ĠlistOf ( first Group , Ġsecond Group ) ĊĊĠĠĠĠĠĠĠ Ġval Ġresult Ġ= ĠGroup ed . flatMap Group ed ( list ) Ġ{ Ġit Ġ-> Ġit Ġto Ġit . commands Ġ}; ĊĊĠĠĠĠĠĠĠ ĠassertThat ( result ). size (). isEqualTo ( 5 ) ĊĠĠĠĠĠĠĠ ĠassertThat ( result [ 0 ]). isEqualTo ( Group ed . Parent < Sync Group , Sync Group . Sync Entry >( first Group )) ĊĠĠĠĠĠĠĠ ĠassertThat ( result [ 1 ]). isEqualTo ( Group ed . Child ( first Group , Ġfirst )) ĊĠĠĠĠĠĠĠ ĠassertThat ( result [ 2 ]). isEqualTo ( Group ed . Child ( first Group , Ġsecond )) ĊĠĠĠĠĠĠĠ ĠassertThat ( result [ 3 ]). isEqualTo ( Group ed . Parent < Sync Group , Sync Group . Sync Entry >( second Group )) ĊĠĠĠĠĠĠĠ ĠassertThat ( result [ 4 ]). isEqualTo ( Group ed . Child ( second Group , Ġthird )) ĊĠĠĠ Ġ} Ċ }