package Ġuk . co . v ict oria jan ed avis . chat app . common Ċ Ċ import Ġorg . junit . Rule Ċ import Ġorg . junit . runner . RunWith Ċ import Ġorg . mockito . junit . Mockito JUnit Ċ import Ġorg . mockito . junit . Mockito JUnit Runner Ċ import Ġorg . mockito . junit . Mockito Rule Ċ import Ġuk . co . v ict oria jan ed avis . chat app . injection . component . UnitTest Application Component Ċ import Ġandroidx . arch . core . executor . testing . Instant Task Executor Rule Ċ import Ġandroidx . test . core . app . Application Provider Ċ import Ġuk . co . v ict oria jan ed avis . chat app . Test Chat App Ċ import Ġuk . co . v ict oria jan ed avis . chat app . data . room . Chat App Database ĊĊ Ċ @ RunWith ( Mockito JUnit Runner . Strict Stub s :: class ) Ċ abstract Ġclass ĠBaseTest Ġ{ ĊĊĠĠĠ Ġ@ Rule Ġ@ Jvm Field ĊĠĠĠ Ġval Ġrule : ĠMockito Rule Ġ= ĠMockito JUnit . rule () ĊĊĠĠĠ Ġ@ Rule Ġ@ Jvm Field ĊĠĠĠ Ġval Ġoverride Schedulers Rule Ġ= ĠRx Scheduler Override Rule () ĊĊĠĠĠ Ġ// ĠRequired Ġto Ġget ĠArch ĠComponents Ġ( Room ) Ġto Ġexecute Ġtasks Ġsynchronous ly ĊĠĠĠ Ġ@ Rule Ġ@ Jvm Field ĊĠĠĠ Ġval Ġinstant Task Executor Rule Ġ= ĠInstant Task Executor Rule () Ċ } Ċ