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