package Ġio . ash dav ies . rx . rx tasks Ċ Ċ import Ġcom . n ha ar man . mockito _ kotlin . any Ċ import Ġcom . n ha ar man . mockito _ kotlin . mock Ċ import Ġcom . n ha ar man . mockito _ kotlin . then Ċ import Ġio . reactivex . Single Emitter Ċ import Ġorg . junit . Test Ċ import Ġorg . mockito . Mockito . never Ċ Ċ class ĠSingle Emitter Success Listener Test Ġ{ ĊĊĠ Ġprivate Ġval Ġemitter Ġ= Ġmock < Single Emitter < Any >>() ĊĠ Ġprivate Ġval Ġlistener Ġ= ĠSingle Emitter Success Listener ( emitter ) ĊĊĠ Ġ@ Test ĊĠ Ġfun Ġ` should Ġcall Ġon Ġsuccess `() Ġ{ ĊĠĠĠ Ġlistener . on Success ( RESULT ) ĊĊĠĠĠ Ġthen ( emitter ). should (). on Success ( RESULT ) ĊĠĠĠ Ġthen ( emitter ). should ( never ()). onError ( any ()) ĊĠ Ġ} ĊĊĠ Ġcompanion Ġobject Ġ{ ĊĊĠĠĠ Ġprivate Ġconst Ġval ĠRESULT Ġ= Ġ" SUCCESS " ĊĠ Ġ} Ċ } Ċ