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