package Ġio . github . mot tl jan . testing . testdata Ċ Ċ import Ġio . github . mot tl jan . api . annotation . Decorator Configuration Ċ import Ġio . github . mot tl jan . api . annotation . Rpc Configuration Ċ import Ġio . github . mot tl jan . api . decoration . Custom Strategy Ċ import Ġio . github . mot tl jan . api . decoration . Decoration Ċ import Ġio . github . mot tl jan . api . decoration . custom Strategy Ċ import Ġio . github . mot tl jan . api . decorator . Decorator Config Ċ Ċ /** Ċ Ġ* Ġ" Stub " Ġclass Ġused Ġfor Ġgenerating Ġdecorator Ġfor Ġtesting Ġpurposes . ĠIt Ġis Ġfocused Ġon Ġ[ Custom Strategy ] Ċ Ġ* Ġtesting . ĠThis Ġclass Ġshould Ġbe Ġchanged Ġwith Ġca ution Ġsince Ġit Ġcan Ġbreak Ġtests . Ċ Ġ*/ Ċ internal Ġclass ĠCustom Stub Ġ{ ĊĊĠĠĠ Ġsuspend Ġfun Ġrpc () Ġ= ĠUnit ĊĊĠĠĠ Ġsuspend Ġfun Ġcustom Rpc () Ġ= ĠUnit Ċ } Ċ Ċ /** Ċ Ġ* Ġ[ Decorator Config ] Ġused Ġfor Ġtesting Ġpurposes . ĠIt Ġis Ġfocused Ġon Ġ[ Custom Strategy ] Ġtesting . Ċ Ġ* ĠThis Ġclass Ġshould Ġbe Ġchanged Ġwith Ġca ution Ġsince Ġit Ġcan Ġbreak Ġtests . Ċ Ġ*/ Ċ @ Decorator Configuration Ċ internal Ġclass ĠCustom Stub Decorator Config ( ĊĠĠĠ Ġprivate Ġval Ġreplace Stub Decoration : ĠDecor ation , ĊĠĠĠ Ġprivate Ġval Ġappend Stub Decoration : ĠDecor ation , ĊĠĠĠ Ġprivate Ġval Ġreplace Custom Rpc Decoration : ĠDecor ation ?, ĊĠĠĠ Ġprivate Ġval Ġappend Custom Rpc Decoration : ĠDecor ation ?, Ċ ) Ġ: ĠDecor ator Config < Custom Stub > Ġ{ ĊĊĠĠĠ Ġoverride Ġfun Ġget Stub (): ĠCustom Stub Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn ĠCustom Stub () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġget Stub Decoration Strategy () Ġ= Ġcustom Strategy Ġ{ ĊĠĠĠĠĠĠĠ Ġremove Decoration With Id ( Global Decoration A . ID ) ĊĠĠĠĠĠĠĠ Ġreplace ( Global Decoration B . ID ) Ġwith Ġreplace Stub Decoration ĊĠĠĠĠĠĠĠ Ġappend ( append Stub Decoration ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Rpc Configuration ( rpc Name Ġ= Ġ" custom Rpc ") ĊĠĠĠ Ġfun Ġget Custom Rpc Decoration Strategy () Ġ= Ġcustom Strategy Ġ{ ĊĠĠĠĠĠĠĠ Ġremove Decoration With Id ( append Stub Decoration . id ) ĊĠĠĠĠĠĠĠ Ġreplace Custom Rpc Decoration ?. let Ġ{ Ġreplace ( replace Stub Decoration . id ) Ġwith Ġit Ġ} ĊĠĠĠĠĠĠĠ Ġappend Custom Rpc Decoration ?. let Ġ{ Ġappend ( it ) Ġ} ĊĠĠĠ Ġ} Ċ } Ċ