package Ġcom . network ed assets . git 4 c . core Ċ Ċ import Ġcom . network ed assets . git 4 c . application . Plugin Components Ċ import Ġcom . network ed assets . git 4 c . boundary . Create Temporary Document ations Content Command Ċ import Ġcom . network ed assets . git 4 c . boundary . outbound . Id Ċ import Ġcom . network ed assets . git 4 c . data . Macro Location Ċ import Ġcom . network ed assets . git 4 c . data . Macro Settings Ċ import Ġcom . network ed assets . git 4 c . data . Page And Space Permissions ForUser Ċ import Ġcom . network ed assets . git 4 c . data . Repository With No Authorization Ċ import Ġcom . network ed assets . git 4 c . test . UseCase Test Ċ import Ġorg . assertj . core . api . Assertions . assertThat Ċ import Ġorg . junit . Test Ċ import Ġkotlin . test . assertNotNull Ċ Ċ class ĠCreate Temporary Document ations Content UseCase Test Ġ: ĠUse Case Test < Create Temporary Document ations Content UseCase >() Ġ{ ĊĊĊĠĠĠ Ġoverride Ġfun Ġget UseCase ( plugin : ĠPlugin Components ): ĠCreate Temporary Document ations Content UseCase Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn ĠCreate Temporary Document ations Content UseCase ( plugin . bus s ines ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġ` Temporary Ġmacro Ġshould Ġbe Ġcreated `() Ġ{ ĊĠĠĠĠĠĠĠ Ġcomponents . database . macro Location Database . put (" macro _ 1 ", ĠMacro Location (" macro _ 1 ", Ġ" page _ 1 ", Ġ" space _ 2 ")) ĊĠĠĠĠĠĠĠ Ġcomponents . providers . macro Settings Provider . put (" macro _ 1 ", ĠMacro Settings (" macro _ 1 ", Ġ" repository _ 1 ", Ġ" master ", Ġ" default _ file ", Ġnull , Ġnull )) ĊĠĠĠĠĠĠĠ Ġcomponents . providers . repository Provider . put (" repository _ 1 ", ĠRepository With No Authorization (" repository _ 1 ", Ġ" src / test / resources ", Ġfalse )) ĊĠĠĠĠĠĠĠ Ġval Ġpermission Ġ= ĠPage And Space Permissions ForUser (" page _ 1 ", Ġ" space _ 2 ", Ġ" test ", Ġtrue ) ĊĠĠĠĠĠĠĠ Ġcomponents . cache . page And Space Permissions ForUser Cache . put ( permission . uuid , Ġpermission ) ĊĊĠĠĠĠĠĠĠ Ġval Ġanswer Ġ= Ġuse Case . execute ( Create Temporary Document ations Content Command (" macro _ 1 ", Ġ" master ", Ġ" test ")) ĊĠĠĠĠĠĠĠ ĠassertNotNull ( answer . component 1 ()) ĊĠĠĠĠĠĠĠ ĠassertThat ( answer . get ()). isInstanceOf ( Id :: class . java ) ĊĠĠĠ Ġ} Ċ Ċ }