package Ġcom . mon ical ab ba o . nov us ord om issa e . root . can on mis sa e Ċ Ċ import Ġcom . uber . rib . core . R ib TestBase Placeholder Ċ import Ġcom . uber . rib . core . Interactor Helper Ċ Ċ import Ġorg . junit . Before Ċ import Ġorg . junit . Test Ċ import Ġorg . mockito . Mock Ċ import Ġorg . mockito . Mockito Annotations Ċ Ċ class ĠCan on Interactor Test Ġ: ĠR ib TestBase Placeholder () Ġ{ ĊĊĠ Ġ@ Mock Ġinternal Ġlateinit Ġvar Ġpresenter : ĠCan on Interactor . Can on Presenter ĊĠ Ġ@ Mock Ġinternal Ġlateinit Ġvar Ġrouter : ĠCan on Router ĊĊĠ Ġprivate Ġvar Ġinter actor : ĠCan on Interactor ? Ġ= Ġnull ĊĊĠ Ġ@ Before ĊĠ Ġfun Ġsetup () Ġ{ ĊĠĠĠ ĠMockito Annotations . init Mocks ( this ) ĊĊĠĠĠ Ġinter actor Ġ= ĠTest Can on Interactor . create ( presenter ) ĊĠ Ġ} ĊĊĠ Ġ/** ĊĠĠ Ġ* ĠTODO : ĠDelete Ġthis Ġexample Ġand Ġadd Ġreal Ġtests . ĊĠĠ Ġ*/ ĊĠ Ġ@ Test ĊĠ Ġfun Ġan Example Test _ with Some Conditions _ should Pass () Ġ{ ĊĠĠĠ Ġ// ĠUse ĠInter actor Helper Ġto Ġdrive Ġyour Ġinter actor 's Ġlifecycle . ĊĠĠĠ ĠInter actor Helper . attach < Can on Interactor . Can on Presenter , ĠCan on Router >( inter actor !! , Ġpresenter , Ġrouter , Ġnull ) ĊĠĠĠ ĠInter actor Helper . detach ( inter actor !! ) ĊĊĠĠĠ Ġthrow ĠRuntimeException (" Remove Ġthis Ġtest Ġand Ġadd Ġreal Ġtests .") ĊĠ Ġ} Ċ }