package Ġorg . simple . clin ic . home . over due Ċ Ċ 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 Ġcom . n ha ar man . mock it ok otlin 2 . verify Zero Interactions Ċ import Ġorg . junit . After Ċ import Ġorg . junit . Test Ċ import Ġorg . simple . clin ic . TestData Ċ import Ġorg . simple . clin ic . mob ius . Effect Handler TestCase Ċ import Ġorg . simple . clin ic . util . scheduler . Test Schedulers Provider Ċ import Ġjava . util . UUID Ċ Ċ class ĠOver due Effect Handler Test Ġ{ ĊĊĠ Ġprivate Ġval Ġfacility Ġ= ĠTest Data . facility ( ĊĠĠĠĠĠ Ġuuid Ġ= ĠUUID . fromString (" 2 5 1 de ca 2 - d 2 1 9 - 4 8 6 3 - 8 0 fc - e 7 d 4 8 cb 2 2 b 1 b "), ĊĠĠĠĠĠ Ġname Ġ= Ġ" PH C ĠOb vious " ĊĠ Ġ) ĊĠ Ġprivate Ġval Ġui Actions Ġ= Ġmock < Over due Ui Actions >() ĊĠ Ġprivate Ġval Ġeffect Handler Ġ= ĠOver due Effect Handler ( ĊĠĠĠĠĠ Ġs chedulers Ġ= ĠTest Schedulers Provider . tr amp oline (), ĊĠĠĠĠĠ Ġappointment Repository Ġ= Ġmock (), ĊĠĠĠĠĠ Ġcurrent Facility Ġ= Ġ{ Ġfacility Ġ}, ĊĠĠĠĠĠ ĠdataSource Factory Ġ= Ġmock (), ĊĠĠĠĠĠ Ġui Actions Ġ= Ġui Actions ĊĠ Ġ). build () ĊĠ Ġprivate Ġval Ġeffect Handler TestCase Ġ= ĠEffect Handler TestCase ( effect Handler ) ĊĊĠ Ġ@ After ĊĠ Ġfun ĠtearDown () Ġ{ ĊĠĠĠ Ġeffect Handler TestCase . dispose () ĊĠ Ġ} ĊĊĠ Ġ@ Test ĊĠ Ġfun Ġ` when Ġopen Ġpatient Ġsummary Ġeffect Ġis Ġreceived , Ġthen Ġopen Ġpatient Ġsummary `() Ġ{ ĊĠĠĠ Ġ// Ġgiven ĊĠĠĠ Ġval Ġpatient Uuid Ġ= ĠUUID . fromString (" e 6 7 9 4 bf 5 - 4 4 7 e - 4 5 8 8 - 8 df 2 - 5 e 2 a 0 7 d 2 3 bc 4 ") ĊĊĠĠĠ Ġ// Ġwhen ĊĠĠĠ Ġeffect Handler TestCase . dispatch ( Open Patient Summary ( patient Uuid )) ĊĊĠĠĠ Ġ// Ġthen ĊĠĠĠ Ġeffect Handler TestCase . assert No Outgoing Events () ĊĊĠĠĠ Ġverify ( ui Actions ). open Patient Summary ( patient Uuid ) ĊĠĠĠ Ġverify No More Interactions ( ui Actions ) ĊĠ Ġ} ĊĊĠ Ġ@ Test ĊĠ Ġfun Ġ` when Ġthe Ġload Ġcurrent Ġfacility Ġeffect Ġis Ġreceived , Ġthen Ġthe Ġcurrent Ġfacility Ġmust Ġbe Ġloaded `() Ġ{ ĊĠĠĠ Ġ// Ġwhen ĊĠĠĠ Ġeffect Handler TestCase . dispatch ( Load Current Facility ) ĊĊĠĠĠ Ġ// Ġthen ĊĠĠĠ Ġeffect Handler TestCase . assert Outgoing Events ( Current Facility Loaded ( facility )) ĊĠĠĠ Ġverify Zero Interactions ( ui Actions ) ĊĠ Ġ} Ċ } Ċ