package Ġio . h nd rs . slack . api . test . group . conversation Ċ Ċ import Ġio . h nd rs . slack . api . contract . jackson . group . con versations . Conversation CreateRequest Ċ import Ġio . h nd rs . slack . api . contract . jackson . group . con versations . Error Conversation Create Response Ċ import Ġio . h nd rs . slack . api . contract . jackson . group . con versations . Successful Conversation Create Response Ċ import Ġio . h nd rs . slack . api . group . Api Call Result Ċ import Ġio . h nd rs . slack . api . group . con versations . Con versations Create Method Ċ import Ġio . h nd rs . slack . api . group . con versations . Con versations Method Group Ċ import Ġio . h nd rs . slack . api . test . Mock Method Ċ Ċ /** Ċ Ġ* ĠTest able Ġimplementation Ġof Ġ[ Con versations Method Group . create ] Ċ Ġ*/ Ċ open Ġclass ĠMock Con versations Create Ġ: Ġio . h nd rs . slack . api . group . con versations . Con versations Create Method (), ĊĠĠĠ ĠMock Method < Successful Conversation Create Response , ĠError Conversation Create Response , ĠCon versation CreateRequest > Ġ{ ĊĊĠĠĠ Ġoverride Ġvar Ġsuccess Response : ĠSuccessful Conversation Create Response ? Ġ= Ġnull ĊĠĠĠ Ġoverride Ġvar Ġfailure Response : ĠError Conversation Create Response ? Ġ= Ġnull ĊĊĠĠĠ Ġoverride Ġfun Ġrequest (): Ġio . h nd rs . slack . api . group . Api Call Result < Successful Conversation Create Response , ĠError Conversation Create Response > Ġ{ ĊĊĠĠĠĠĠĠĠ Ġthis . success Response ?. let Ġ{ Ġthis . on Success ?. invoke ( it ) Ġ} ĊĠĠĠĠĠĠĠ Ġthis . failure Response ?. let Ġ{ Ġthis . on Failure ?. invoke ( it ) Ġ} ĊĊĠĠĠĠĠĠĠ Ġreturn Ġio . h nd rs . slack . api . group . Api Call Result ( this . success Response , Ġthis . failure Response ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġparams () Ġ= Ġparams Ċ } Ċ