package Ġ<%= Ġapp Package Ġ% >. domain . inter actor Ċ Ċ import Ġ<%= Ġapp Package Ġ% >. domain . example . database . inter actor . Get Examples From Database Ċ import Ġ<%= Ġapp Package Ġ% >. domain . executor . Post Executor Thread Ċ import Ġ<%= Ġapp Package Ġ% >. domain . example . database . repository . Example Database Repository Ċ import Ġorg . junit . Before Ċ import Ġorg . junit . Test Ċ import Ġorg . junit . runner . RunWith Ċ import Ġorg . mockito . Mock Ċ import Ġorg . mockito . Mockito Ċ import Ġorg . mockito . runners . Mockito JUnit Runner Ċ Ċ /** Ċ Ġ* ĠCreated Ġby ĠD wi _ A ri Ġon Ġ 1 0 / 3 1 / 1 7 . Ċ Ġ*/ Ċ Ċ @ RunWith ( Mockito JUnit Runner :: class ) Ċ class ĠGet Examples From Database Test { ĊĠĠĠ Ġprivate Ġlateinit Ġvar Ġget Example : ĠGet Examples From Database ĊĊĠĠĠ Ġ@ Mock ĊĠĠĠ Ġprivate Ġlateinit Ġvar Ġthread : ĠPost Executor Thread ĊĠĠĠ Ġ@ Mock ĊĠĠĠ Ġprivate Ġlateinit Ġvar Ġrepo : ĠExample Database Repository ĊĊĠĠĠ Ġ@ Before ĊĠĠĠ Ġfun ĠsetUp () Ġ{ ĊĠĠĠĠĠĠĠ Ġget Example Ġ= ĠGet Examples From Database ( repo , Ġthread ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun ĠtestGet UserList UseCase Observable Happy Case () Ġ{ ĊĠĠĠĠĠĠĠ Ġget Example . build (" cek ") ĊĊĠĠĠĠĠĠĠ ĠMockito . verify ( repo ). examples (" cek ") ĊĠĠĠĠĠĠĠ ĠMockito . verify No More Interactions ( repo ) ĊĠĠĠĠĠĠĠ ĠMockito . verify Zero Interactions ( thread ) ĊĠĠĠ Ġ} Ċ }