package Ġio . ash dav ies . rx . rx tasks Ċ Ċ import Ġcom . google . common . truth . Truth . assertThat Ċ import Ġcom . n ha ar man . mockito _ kotlin . mock Ċ import Ġio . reactivex . Single Emitter Ċ import Ġorg . junit . Test Ċ Ċ internal Ġclass ĠSingle Task Listener Factory Test Ġ{ ĊĊĠ Ġprivate Ġval Ġemitter Ġ= Ġmock < Single Emitter < Any >>() ĊĠ Ġprivate Ġval Ġfactory Ġ= ĠSingle Task Listener Factory < Any >() ĊĊĠ Ġ@ Test ĊĠ Ġfun Ġ` should Ġreturn Ġcomplet able Ġemitter Ġsuccess Ġlistener `() Ġ{ ĊĠĠĠ ĠassertThat ( factory . create On Success Listener ( emitter )). isInstanceOf ( Single Emitter Success Listener :: class . java ) ĊĠ Ġ} ĊĊĠ Ġ@ Test ĊĠ Ġfun Ġ` should Ġreturn Ġcomplet able Ġemitter Ġfailure Ġlistener `() Ġ{ ĊĠĠĠ ĠassertThat ( factory . create On Failure Listener ( emitter )). isInstanceOf ( Single Emitter Failure Listener :: class . java ) ĊĠ Ġ} Ċ } Ċ