package Ġcom . k re ait . slack . api . test . group . users Ċ Ċ import Ġcom . k re ait . slack . api . contract . jackson . group . users . Error List All Response Ċ import Ġcom . k re ait . slack . api . contract . jackson . group . users . List All Request Ċ import Ġcom . k re ait . slack . api . contract . jackson . group . users . Successful List All Response Ċ import Ġcom . k re ait . slack . api . group . Api Call Result Ċ import Ġcom . k re ait . slack . api . group . users . UserList All Method Ċ import Ġcom . k re ait . slack . api . group . users . Users Method Group Ċ import Ġcom . k re ait . slack . api . test . Mock Method Ċ Ċ /** Ċ Ġ* ĠTest able Ġimplementation Ġof Ġ[ Users Method Group . list All ] Ċ Ġ*/ Ċ class ĠMock UserList All Method Ġ: ĠUser List All Method (), ĊĠĠĠ ĠMock Method < Successful List All Response , ĠError List All Response , ĠList All Request > Ġ{ ĊĊĠĠĠ Ġoverride Ġvar Ġsuccess Response : ĠSuccessful List All Response ? Ġ= Ġnull ĊĠĠĠ Ġoverride Ġvar Ġfailure Response : ĠError List All Response ? Ġ= Ġnull ĊĊĠĠĠ Ġoverride Ġfun Ġrequest (): ĠApi Call Result < Successful List All Response , ĠError List All Response > Ġ{ ĊĊĠĠĠĠĠĠĠ Ġthis . success Response ?. let Ġ{ Ġthis . on Success ?. invoke ( it ) Ġ} ĊĠĠĠĠĠĠĠ Ġthis . failure Response ?. let Ġ{ Ġthis . on Failure ?. invoke ( it ) Ġ} ĊĊĠĠĠĠĠĠĠ Ġreturn ĠApi Call Result ( this . success Response , Ġthis . failure Response ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġparams (): ĠList All Request Ġ= Ġparams Ċ } Ċ