package Ġcom . k re ait . bots . agile . domain . slack . commands . info Ċ Ċ import Ġcom . k re ait . bots . agile . UnitTest Ċ import Ġcom . k re ait . bots . agile . domain . slack . Slash Command Test Ċ import Ġcom . k re ait . bots . agile . domain . slack . info . Ol aph Slash Command Receiver Ċ import Ġcom . k re ait . bots . agile . domain . slack . info . Slack Send Info Service Ċ 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 . Slack Command Ċ import Ġcom . k re ait . slack . api . contract . jackson . sample Ċ import Ġorg . junit . jupiter . api . Assertions Ċ import Ġorg . junit . jupiter . api . DisplayName Ċ import Ġorg . junit . jupiter . api . Test Ċ import Ġorg . springframework . http . HttpHeaders Ċ Ċ @ UnitTest Ċ class ĠOl aph Slash Command Receiver UnitTests Ġ: ĠSl ash Command Test Ġ{ ĊĊĊĠĠĠ Ġ@ DisplayName (" Supports Command ") ĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġoverride Ġfun Ġsupports Command () Ġ{ ĊĊĠĠĠĠĠĠĠ Ġval Ġreceiver Ġ= ĠOl aph Slash Command Receiver ( mock Ġ{ Ġ}) ĊĠĠĠĠĠĠĠ ĠAssertions . assertTrue ( receiver . supports Command ( Slack Command . sample (). copy ( command Ġ= Ġ"/ ol aph "))) ĊĠĠĠĠĠĠĠ ĠAssertions . assertTrue ( receiver . supports Command ( Slack Command . sample (). copy ( command Ġ= Ġ"/ ol aph ", Ġtext Ġ= Ġ" Ġhelp "))) ĊĠĠĠĠĠĠĠ ĠAssertions . assertTrue ( receiver . supports Command ( Slack Command . sample (). copy ( command Ġ= Ġ"/ ol aph ", Ġtext Ġ= Ġ" help "))) ĊĠĠĠĠĠĠĠ ĠAssertions . assertFalse ( receiver . supports Command ( Slack Command . sample (). copy ( command Ġ= Ġ"/ sample "))) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ DisplayName (" On Receive Slash Comm end ") ĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġoverride Ġfun Ġon Receive Slash Command () Ġ{ ĊĊĠĠĠĠĠĠĠ Ġval Ġservice Ġ= Ġmock < Slack Send Info Service > Ġ{ Ġ} ĊĊĠĠĠĠĠĠĠ Ġval Ġreceiver Ġ= ĠOl aph Slash Command Receiver ( service ) ĊĊĠĠĠĠĠĠĠ Ġval Ġslack Command Ġ= ĠSlack Command . sample (). copy ( channelId Ġ= Ġ" Sample Channel Id ", ĠuserId Ġ= Ġ" Sample UserId ", Ġteam Id Ġ= Ġ"") ĊĠĠĠĠĠĠĠ Ġreceiver . on Receive Slash Command ( slack Command , ĠHttp Headers . EMPTY , ĠTeam ("", Ġ"", ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠTeam . Bot ("", Ġ" "))) ĊĊĠĠĠĠĠĠĠ Ġverify ( service , Ġtimes ( 1 )). send Info Message ( slack Command , Ġ"") ĊĠĠĠ Ġ} Ċ } ĊĊ