package Ġio . github . v 1 servic en ot ification . setting Ċ Ċ import Ġio . github . v 1 servic en ot ification . category . Category Ċ import Ġio . github . v 1 servic en ot ification . setting . active Setting . service . Activate Category Impl Ċ import Ġio . github . v 1 servic en ot ification . setting . facade . Setting Facade Ċ import Ġio . github . v 1 servic en ot ification . stubs . InMemory Category Repository Ċ import Ġio . github . v 1 servic en ot ification . stubs . InMemory Setting Repository Ċ import Ġorg . assertj . core . api . Assertions . assertThat Ċ import Ġorg . junit . jupiter . api . Test Ċ import Ġjava . util .* Ċ Ċ class ĠActivate Category Impl Test Ġ{ ĊĊĠĠĠ Ġprivate Ġval Ġcategory Spi Ġ= ĠIn Memory Category Repository () ĊĊĠĠĠ Ġprivate Ġval Ġsetting Spi Ġ= ĠIn Memory Setting Repository () ĊĊĠĠĠ Ġprivate Ġval Ġsetting Facade Ġ= ĠSetting Facade ( category Spi , Ġsetting Spi ) ĊĊĠĠĠ Ġprivate Ġval Ġactivate Category Ġ= ĠActivate Category Impl ( setting Facade ) ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġactivate Category () Ġ{ ĊĠĠĠĠĠĠĠ Ġval ĠuserId Ġ= ĠUUID . randomUUID () ĊĠĠĠĠĠĠĠ Ġval Ġcategory Id Ġ= ĠUUID . randomUUID () ĊĠĠĠĠĠĠĠ Ġcategory Spi . save Category ( ĊĠĠĠĠĠĠĠĠĠĠĠ ĠCategory ( categoryId , Ġ" Test Ġname ", Ġ" Test Ġdestination ", Ġfalse ) ĊĠĠĠĠĠĠĠ Ġ) ĊĠĠĠĠĠĠĠ ĠassertThat ( activate Category . activate Category ( categoryId , ĠuserId )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. isEqualTo ( 2 0 1 ) ĊĠĠĠĠĠĠĠ ĠassertThat ( activate Category . activate Category ( categoryId , ĠuserId )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. isEqualTo ( 2 0 4 ) ĊĠĠĠ Ġ} Ċ Ċ }