package Ġorg . simple . clin ic . intro videos creen Ċ Ċ import Ġcom . n ha ar man . mock it ok otlin 2 . mock Ċ import Ġcom . n ha ar man . mock it ok otlin 2 . verify Ċ import Ġcom . n ha ar man . mock it ok otlin 2 . verify No More Interactions Ċ import Ġorg . junit . After Ċ import Ġorg . junit . Test Ċ import Ġorg . simple . clin ic . mob ius . Effect Handler TestCase Ċ import Ġorg . simple . clin ic . util . scheduler . Tr amp oline Schedulers Provider Ċ Ċ class ĠIntro Video Effect Handler Test Ġ{ ĊĊĠ Ġprivate Ġval Ġui Actions Ġ= Ġmock < Ui Actions >() ĊĠ Ġprivate Ġval Ġeffect Handler Ġ= ĠIntro Video Effect Handler ( ĊĠĠĠĠĠ Ġs chedulers Provider Ġ= ĠTr amp oline Schedulers Provider (), ĊĠĠĠĠĠ Ġview Effects Consumer Ġ= ĠIntro Video View Effect Handler ( ui Actions ):: handle ĊĠ Ġ). build () ĊĊĠ Ġprivate Ġval Ġeffect Handler TestCase Ġ= ĠEffect Handler TestCase ( effect Handler ) ĊĊĠ Ġ@ Test ĊĠ Ġfun Ġ` when Ġopen Ġvideo Ġeffect Ġis Ġreceived , Ġthen Ġopen Ġthe Ġvideo `() Ġ{ ĊĠĠĠ Ġ// Ġwhen ĊĠĠĠ Ġeffect Handler TestCase . dispatch ( Open Video ) ĊĊĠĠĠ Ġ// Ġthen ĊĠĠĠ Ġeffect Handler TestCase . assert No Outgoing Events () ĊĊĠĠĠ Ġverify ( ui Actions ). open Video () ĊĠĠĠ Ġverify No More Interactions ( ui Actions ) ĊĠ Ġ} ĊĊĠ Ġ@ Test ĊĠ Ġfun Ġ` when Ġopen Ġhome Ġeffect Ġis Ġreceived , Ġthen Ġopen Ġhome Ġscreen `() Ġ{ ĊĠĠĠ Ġ// Ġwhen ĊĠĠĠ Ġeffect Handler TestCase . dispatch ( Open Home ) ĊĊĠĠĠ Ġ// Ġthen ĊĠĠĠ Ġeffect Handler TestCase . assert No Outgoing Events () ĊĊĠĠĠ Ġverify ( ui Actions ). open Home () ĊĠĠĠ Ġverify No More Interactions ( ui Actions ) ĊĠ Ġ} ĊĊĠ Ġ@ After ĊĠ Ġfun Ġteardown () Ġ{ ĊĠĠĠ Ġeffect Handler TestCase . dispose () ĊĠ Ġ} Ċ } Ċ