package Ġapp . lu is ram os . ler . domain Ċ Ċ import Ġapp . lu is ram os . ler . test . Fake Preferences Ċ import Ġcom . google . common . truth . Truth . assertThat Ċ import Ġorg . junit . Test Ċ Ċ class ĠDefault Schedule Feed Sync UseCase Test Ġ{ ĊĊĠĠĠ Ġprivate Ġval Ġfake Prefs Ġ= ĠFake Preferences () ĊĠĠĠ Ġprivate Ġvar Ġdid Call Enqueue Feed Sync Ġ= Ġfalse ĊĠĠĠ Ġprivate Ġval Ġenqueue Feed Sync Work Ġ= Ġ{ Ġdid Call Enqueue Feed Sync Ġ= Ġtrue Ġ} ĊĠĠĠ Ġprivate Ġval Ġuse Case Ġ= ĠDefault Schedule Feed Sync UseCase ( fake Prefs , Ġenqueue Feed Sync Work ) ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġ` given Ġfeed Ġrefresh Ġis Ġenabled , Ġwhen Ġuse Case Ġis Ġcalled , Ġrefresh Ġfeeds `() Ġ{ ĊĠĠĠĠĠĠĠ Ġfake Prefs . is Feed Refresh Enabled Ġ= Ġtrue ĊĠĠĠĠĠĠĠ Ġuse Case . schedule () ĊĠĠĠĠĠĠĠ ĠassertThat ( did Call Enqueue Feed Sync ). isTrue () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġ` given Ġfeed Ġrefresh Ġis Ġdisabled , Ġwhen Ġuse Case Ġis Ġcalled , Ġrefresh Ġfeeds `() Ġ{ ĊĠĠĠĠĠĠĠ Ġfake Prefs . is Feed Refresh Enabled Ġ= Ġfalse ĊĠĠĠĠĠĠĠ Ġuse Case . schedule () ĊĠĠĠĠĠĠĠ ĠassertThat ( did Call Enqueue Feed Sync ). isFalse () ĊĠĠĠ Ġ} Ċ }