/** Ċ * ĠCopyright ĠS or am its u ĠCo ., ĠLtd . ĠAll ĠRights ĠReserved . Ċ * ĠSPDX - License - Identifier : ĠGPL - 3 . 0 Ċ */ Ċ Ċ package Ġjp . co . sor am its u . feature _ on boarding _ impl . presentation Ċ Ċ import Ġandroidx . arch . core . executor . testing . Instant Task Executor Rule Ċ import Ġjp . co . sor am its u . common . domain . Invitation Handler Ċ import Ġjp . co . sor am its u . test _ shared . Rx Schedulers Rule Ċ import Ġorg . junit . Before Ċ import Ġorg . junit . Rule Ċ import Ġorg . junit . Test Ċ import Ġorg . junit . rules . Test Rule Ċ import Ġorg . junit . runner . RunWith Ċ import Ġorg . mockito . Mock Ċ import Ġorg . mockito . Mockito . verify Ċ import Ġorg . mockito . junit . Mockito JUnit Runner Ċ Ċ @ RunWith ( Mockito JUnit Runner :: class ) Ċ class ĠOn boarding ViewModel Test Ġ{ ĊĊĠĠĠ Ġ@ Rule Ġ@ Jvm Field Ġval Ġrule : ĠTest Rule Ġ= ĠInstant Task Executor Rule () ĊĠĠĠ Ġ@ Rule Ġ@ Jvm Field Ġval Ġrx Scheduler Rule Ġ= ĠRx Schedulers Rule () ĊĊĠĠĠ Ġ@ Mock Ġprivate Ġlateinit Ġvar Ġinv itation Handler : ĠInv itation Handler ĊĊĠĠĠ Ġprivate Ġlateinit Ġvar Ġon boarding ViewModel : ĠOn boarding ViewModel ĊĊĠĠĠ Ġ@ Before Ġfun ĠsetUp () Ġ{ ĊĠĠĠĠĠĠĠ Ġon boarding ViewModel Ġ= ĠOn boarding ViewModel ( inv itation Handler ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test Ġfun Ġ` success Ġverification Ġcode Ġentered `() Ġ{ ĊĠĠĠĠĠĠĠ Ġon boarding ViewModel . started With Invite Action () ĊĊĠĠĠĠĠĠĠ Ġverify ( inv itation Handler ). inv itation Applied () ĊĠĠĠ Ġ} Ċ }