package Ġcom . k re ait . slack . api . test . group . groups Ċ Ċ import Ġcom . k re ait . slack . api . contract . jackson . group . groups . Error Groups Leave Response Ċ import Ġcom . k re ait . slack . api . contract . jackson . group . groups . Groups Leave Request Ċ import Ġcom . k re ait . slack . api . contract . jackson . group . groups . Successful Groups Leave Response Ċ import Ġcom . k re ait . slack . api . group . Api Call Result Ċ import Ġcom . k re ait . slack . api . group . groups . Groups Leave Method Ċ import Ġcom . k re ait . slack . api . group . groups . Groups Method Group Ċ import Ġcom . k re ait . slack . api . test . Mock Method Ċ Ċ /** Ċ Ġ* ĠTest able Ġimplementation Ġof Ġ[ Groups Method Group . leave ] Ċ Ġ*/ Ċ open Ġclass ĠMock Groups Leave Method Ġ: ĠGroups Leave Method (), ĠMock Method < Successful Groups Leave Response , ĠError Groups Leave Response , ĠGroups Leave Request > Ġ{ ĊĊĠĠĠ Ġoverride Ġfun Ġparams (): ĠGroups Leave Request Ġ= Ġparams ĊĊĠĠĠ Ġoverride Ġvar Ġsuccess Response : ĠSuccessful Groups Leave Response ? Ġ= Ġnull ĊĠĠĠ Ġoverride Ġvar Ġfailure Response : ĠError Groups Leave Response ? Ġ= Ġnull ĊĊĠĠĠ Ġoverride Ġfun Ġrequest (): ĠApi Call Result < Successful Groups Leave Response , ĠError Groups Leave 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 ) ĊĠĠĠ Ġ} Ċ } Ċ