package Ġcom . k re ait . bots . agile . domain . slack . stand up Definition . edit . submission Ċ Ċ import Ġcom . k re ait . bots . agile . UnitTest Ċ import Ġcom . k re ait . bots . agile . domain . slack . Interactive Component Receiver Test Ċ import Ġcom . k re ait . bots . agile . domain . slack . stand up Definition . create . dialog . dto . Create Dialog Submission Ċ import Ġcom . n ha ar man . mock it ok otlin 2 . mock Ċ import Ġcom . n ha ar man . mock it ok otlin 2 . times Ċ import Ġcom . n ha ar man . mock it ok otlin 2 . verify Ċ import Ġcom . k re ait . slack . broker . store . team . Team Ċ import Ġcom . k re ait . slack . api . contract . jackson . Interactive Message Ċ import Ġcom . k re ait . slack . api . contract . jackson . sample Ċ import Ġorg . junit . jupiter . api . DisplayName Ċ import Ġorg . junit . jupiter . api . Test Ċ import Ġorg . springframework . http . HttpHeaders Ċ Ċ @ UnitTest Ċ class ĠEdit Dialog Submission Receiver Test Ġ: ĠInteractive Component Receiver Test Ġ{ ĊĊĠĠĠ Ġ@ DisplayName (" Test ĠSupports ĠComponent ") ĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġoverride Ġfun Ġsupports Interactive Message () Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġedit Dialog Submission Receiver Ġ= ĠEdit Dialog Submission Receiver ( mock ()) ĊĠĠĠĠĠĠĠ Ġval Ġinteractive Component Response Ġ= ĠInteractive Message . sample () ĊĠĠĠĠĠĠĠ Ġedit Dialog Submission Receiver . supports Interactive Message ( interactive Component Response ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ DisplayName (" Test Ġreceive Interactive Component ") ĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġoverride Ġfun Ġon Receive Interactive Message () Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġedit Dialog Submission Handler Ġ= Ġmock < Edit Dialog Submission Handler >() ĊĠĠĠĠĠĠĠ Ġval Ġedit Dialog Submission Receiver Ġ= ĠEdit Dialog Submission Receiver ( edit Dialog Submission Handler ) ĊĠĠĠĠĠĠĠ Ġval Ġinteractive Component Response Ġ= ĠInteractive Message . sample (). copy ( submission Ġ= Ġmap Of ( Pair ( Create Dialog Submission . NAME , Ġ" Workspace "), ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠPair ( Create Dialog Submission . DAYS , Ġ" mon "), ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠPair ( Create Dialog Submission . TIME , Ġ" 1 3 : 3 0 "), ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠPair ( Create Dialog Submission . BRO ADCAST _ CHANNEL _ ID , Ġ" channel "), ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠPair ( Create Dialog Submission . QUEST IONS , Ġ" what "))) ĊĠĠĠĠĠĠĠ Ġedit Dialog Submission Receiver . on Receive Interactive Message ( interactive Component Response , ĠHttp Headers . EMPTY , ĠTeam ("", Ġ"", ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠTeam . Bot ("", Ġ" "))) ĊĠĠĠĠĠĠĠ Ġverify ( edit Dialog Submission Handler , Ġtimes ( 1 )). handle Edit Dialog Submission ( ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠCreate Dialog Submission . of ( interactive Component Response . submission !! ), Ġinteractive Component Response , Ġ"") ĊĠĠĠ Ġ} Ċ } Ċ