package Ġcom . k re ait . bots . agile . domain . slack . stand up Definition . leave . dialog . open Ċ Ċ 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 . leave . dialog . Callback Ċ import Ġcom . k re ait . slack . api . contract . jackson . Interactive Component Response Ċ import Ġcom . k re ait . slack . api . contract . jackson . Interactive Message Ċ import Ġcom . k re ait . slack . api . contract . jackson . User Ċ import Ġcom . k re ait . slack . api . contract . jackson . sample Ċ 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 Ġorg . junit . jupiter . api . DisplayName Ċ import Ġorg . junit . jupiter . api . Test Ċ import Ġorg . springframework . http . HttpHeaders Ċ Ċ @ UnitTest Ċ class ĠLeave Command Submission Receiver Test Ġ: ĠInteractive Component Receiver Test Ġ{ ĊĊĠĠĠ Ġ@ DisplayName (" test Ġsupports ĠLeave Ġsubmission ") ĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġoverride Ġfun Ġsupports Interactive Message () Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġleave Command Submission Receiver Ġ= ĠLeave Command Submission Receiver ( mock ()) ĊĠĠĠĠĠĠĠ Ġval Ġcomponent Ġ= ĠInteractive Message . sample (). copy ( ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġteam Ġ= ĠInteractive Component Response . Team (" sample Team ", Ġ"", Ġ"", Ġ""), ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġuser Ġ= ĠUser (" sample User ", Ġ"", Ġ"", Ġ""), ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġcallback Id Ġ= ĠCallback . LEAVE _ DIALOG . id ) ĊĠĠĠĠĠĠĠ Ġleave Command Submission Receiver . supports Interactive Message ( component ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ DisplayName (" test Ġreceive ĠLeave Ġsubmission ") ĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġoverride Ġfun Ġon Receive Interactive Message () Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġleave Command Submission Handler Ġ= Ġmock < Leave Command Submission Handler >() ĊĠĠĠĠĠĠĠ Ġval Ġleave Command Submission Receiver Ġ= ĠLeave Command Submission Receiver ( leave Command Submission Handler ) ĊĠĠĠĠĠĠĠ Ġval Ġcomponent Ġ= ĠInteractive Message . sample () ĊĠĠĠĠĠĠĠ Ġleave Command Submission Receiver . on Receive Interactive Message ( component , ĠHttp Headers . EMPTY , Ġcom . k re ait . slack . broker . store . team . Team ("", Ġ"", ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġcom . k re ait . slack . broker . store . team . Team . Bot ("", Ġ" "))) ĊĊĠĠĠĠĠĠĠ Ġverify ( leave Command Submission Handler , Ġtimes ( 1 )). handle Submission ( component , Ġ"") ĊĠĠĠ Ġ} Ċ } Ċ