package Ġcom . gmail . to fib ash ers . blacklist . ui Ċ Ċ import Ġandroid . arch . lifecycle . Mutable LiveData Ċ import Ġcom . gmail . to fib ash ers . blacklist . domain .* Ċ import Ġcom . gmail . to fib ash ers . blacklist . entity .* Ċ import Ġcom . gmail . to fib ash ers . blacklist . ui . blacklist _ contact _ options .* Ċ import Ġcom . gmail . to fib ash ers . blacklist . ui . common . Saving Result Ċ import Ġcom . gmail . to fib ash ers . blacklist . ui . common . Single Live Event Ċ import Ġcom . n ha ar man . mockito _ kotlin .* Ċ import Ġio . reactivex . Comp letable Ċ import Ġio . reactivex . Single Ċ import Ġio . reactivex . schedul ers . Test Scheduler Ċ import Ġorg . junit . Before Ċ import Ġorg . junit . Test Ċ import Ġorg . junit . runner . RunWith Ċ import Ġorg . mockito . Mock Ċ import Ġorg . mockito . junit . Mockito JUnit Runner ĊĊ Ċ /** Ċ Ġ* ĠCreated Ġby ĠT of iB ash ers Ġon Ġ 2 2 . 0 4 . 2 0 1 8 . Ċ Ġ*/ Ċ @ RunWith ( Mockito JUnit Runner . Strict Stub s :: class ) Ċ class ĠBlack list Contact Options ViewModel Test Ġ{ ĊĊĠĠĠ Ġ@ Mock ĊĠĠĠ Ġlateinit Ġvar Ġmock Get Interaction Mode With Item And Valid UseCase : ĠI Get Interaction Mode With Selected Black list Contact Item UseCase ĊĊĠĠĠ Ġ@ Mock ĊĠĠĠ Ġlateinit Ġvar Ġmock Save Contact With Only Black list Ph ones With Delete Selections UseCase : ĠIS ave Black list Contact Item With Only Black list Ph ones With Delete Selections UseCase ĊĊĠĠĠ Ġ@ Mock ĊĠĠĠ Ġlateinit Ġvar Ġmock Select For Edit Activity Intervals UseCase : ĠI Select For Edit Activity Intervals Of Black list Contact Phone UseCase ĊĊĠĠĠ Ġ@ Mock ĊĠĠĠ Ġlateinit Ġvar Ġmock Save Selected Interval UseCase : ĠIS ave Selected For Edit Activity Interval sTo All Black list Contact Ph ones Intervals UseCase ĊĊĠĠĠ Ġ@ Mock ĊĠĠĠ Ġlateinit Ġvar Ġmock Validate Phone Numbers For Save Sync UseCase : ĠI Validate Black list Contact Phone Numbers For Save Sync UseCase ĊĊĠĠĠ Ġ@ Mock ĊĠĠĠ Ġlateinit Ġvar Ġmock Delete All Selections UseCase : ĠI Delete All Selections UseCase ĊĊĠĠĠ Ġ@ Mock ĊĠĠĠ Ġlateinit Ġvar Ġmock Data ViewState Factory : ĠBlack list Contact Options ViewState _ Data ViewState Factory ĊĊĠĠĠ Ġ@ Mock ĊĠĠĠ Ġlateinit Ġvar Ġmock Loading ViewState Factory : ĠBlack list Contact Options ViewState _ Loading ViewState Factory ĊĊĠĠĠ Ġ@ Mock ĊĠĠĠ Ġlateinit Ġvar Ġmock List Route Factory : ĠBlack list Contact Options Nav Data _ List Route Factory ĊĊĠĠĠ Ġ@ Mock ĊĠĠĠ Ġlateinit Ġvar Ġmock Activity Interval Details Route Factory : ĠBlack list Contact Options Nav Data _ Activity Interval Details Route Factory ĊĊĠĠĠ Ġ@ Mock ĊĠĠĠ Ġlateinit Ġvar Ġmock List Route With Cancel And Error Factory : ĠBlack list Contact Options Nav Data _ List Route With Cancel And Changed Or Deleted Error Factory ĊĊĠĠĠ Ġ@ Mock ĊĠĠĠ Ġlateinit Ġvar Ġmock ViewState Data : ĠMutable LiveData < Black list Contact Options ViewState > ĊĊĠĠĠ Ġ@ Mock ĊĠĠĠ Ġlateinit Ġvar Ġmock Navigate Single Data : ĠSingle Live Event < Black list Contact Options Nav Data > ĊĊĠĠĠ Ġprivate Ġlateinit Ġvar Ġtest ViewModel : ĠBlack list Contact Options ViewModel ĊĊĠĠĠ Ġ@ Before ĊĠĠĠ Ġfun ĠsetUp () Ġ{ ĊĠĠĠĠĠĠĠ Ġtest ViewModel Ġ= ĠBlack list Contact Options ViewModel ( mock Get Interaction Mode With Item And Valid UseCase , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġmock Save Contact With Only Black list Ph ones With Delete Selections UseCase , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġmock Select For Edit Activity Intervals UseCase , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġmock Save Selected Interval UseCase , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġmock Validate Phone Numbers For Save Sync UseCase , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġmock Delete All Selections UseCase , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġmock Data ViewState Factory , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġmock Loading ViewState Factory , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġmock List Route Factory , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġmock Activity Interval Details Route Factory , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġmock List Route With Cancel And Error Factory , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġmock ViewState Data , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġmock Navigate Single Data ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġtest OnInit Get Contact And Ph ones Success _ set To View (){ ĊĊĠĠĠĠĠĠĠ Ġval Ġtest Mode With Item And State Ġ= Ġdefault Create Mode And Contact With One Phone () ĊĠĠĠĠĠĠĠ Ġval ĠtestData ViewState Ġ= ĠBlack list Contact Options ViewState . Data ViewState ( test Mode With Item And State ) ĊĠĠĠĠĠĠĠ Ġval Ġmock Loading ViewState Ġ: ĠBlack list Contact Options ViewState . Loading ViewState Ġ= Ġmock () ĊĠĠĠĠĠĠĠ Ġval Ġtest Scheduler Ġ= ĠTest Scheduler () ĊĊĠĠĠĠĠĠĠ Ġwhenever ( mock Get Interaction Mode With Item And Valid UseCase . build ()) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. thenReturn ( Single . just ( test Mode With Item And State ) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. observe On ( test Scheduler )) ĊĠĠĠĠĠĠĠ Ġwhenever ( mock Loading ViewState Factory . create ()). thenReturn ( mock Loading ViewState ) ĊĠĠĠĠĠĠĠ Ġwhenever ( mock Data ViewState Factory . create ( test Mode With Item And State )). thenReturn ( testData ViewState ) ĊĊĠĠĠĠĠĠĠ Ġtest ViewModel . on Init Get Contact And Ph ones () ĊĊĠĠĠĠĠĠĠ Ġverify ViewModels Values Calls Count ( testData ViewState , Ġ 0 , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġmock Loading ViewState , Ġ 1 ) ĊĊĠĠĠĠĠĠĠ Ġtest Scheduler . trigger Actions () ĊĊĠĠĠĠĠĠĠ Ġverify ViewModels Values Calls Count ( testData ViewState , Ġ 1 , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġmock Loading ViewState , Ġ 1 ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġtest OnInit Get Success And Then Init Save Success _ nav ToList With Saved (){ ĊĊĠĠĠĠĠĠĠ Ġval Ġtest Phone Numbers Ġ= Ġdefault Contact Ph ones With One Phone () ĊĠĠĠĠĠĠĠ Ġval Ġtest Contact Item Ġ= Ġdefault Contact Item () ĊĠĠĠĠĠĠĠ Ġval Ġtest Mode With Item And State Ġ= ĠInteraction Mode With Black list Contact Item And Numbers And Valid State ( ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġmode Ġ= ĠInteraction Mode . EDIT , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġcontact Item Ġ= Ġtest Contact Item , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġphone Numbers Ġ= Ġtest Phone Numbers , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠisValid To Save Ġ= Ġtrue ) ĊĠĠĠĠĠĠĠ Ġval ĠtestData ViewState Ġ= ĠBlack list Contact Options ViewState . Data ViewState ( test Mode With Item And State ) ĊĠĠĠĠĠĠĠ Ġval Ġtest Final Route Ġ= ĠBlack list Contact Options Nav Data . List Route ( Saving Result . SA VED ) ĊĠĠĠĠĠĠĠ Ġval Ġtest Save Scheduler Ġ= ĠTest Scheduler () ĊĊĠĠĠĠĠĠĠ Ġval Ġmock Loading ViewState Ġ: ĠBlack list Contact Options ViewState . Loading ViewState Ġ= Ġmock () ĊĊĠĠĠĠĠĠĠ Ġwhenever ( mock Get Interaction Mode With Item And Valid UseCase . build ()) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. thenReturn ( Single . just ( test Mode With Item And State )) ĊĠĠĠĠĠĠĠ Ġwhenever ( mock Save Contact With Only Black list Ph ones With Delete Selections UseCase . build ( test Contact Item , Ġtest Phone Numbers )) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. thenReturn ( Comp letable . complete () ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. observe On ( test Save Scheduler )) ĊĠĠĠĠĠĠĠ Ġwhenever ( mock Loading ViewState Factory . create ()). thenReturn ( mock Loading ViewState ) ĊĠĠĠĠĠĠĠ Ġwhenever ( mock Data ViewState Factory . create ( test Mode With Item And State )). thenReturn ( testData ViewState ) ĊĠĠĠĠĠĠĠ Ġwhenever ( mock List Route Factory . create ( Saving Result . SA VED )). thenReturn ( test Final Route ) ĊĊĠĠĠĠĠĠĠ Ġtest ViewModel . on Init Get Contact And Ph ones () ĊĠĠĠĠĠĠĠ Ġtest ViewModel . on Init Save () ĊĊĠĠĠĠĠĠĠ Ġverify ViewModels Values Calls Count ( ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġloading ViewState Ġ= Ġmock Loading ViewState , Ġtimes Loading Called Ġ= Ġ 2 , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġlist Route Ġ= Ġtest Final Route , Ġtimes List Route Called Ġ= Ġ 0 ) ĊĊĠĠĠĠĠĠĠ Ġtest Save Scheduler . trigger Actions () ĊĊĠĠĠĠĠĠĠ Ġverify ViewModels Values Calls Count ( ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġloading ViewState Ġ= Ġmock Loading ViewState , Ġtimes Loading Called Ġ= Ġ 2 , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġlist Route Ġ= Ġtest Final Route , Ġtimes List Route Called Ġ= Ġ 1 ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġtest OnInit Get Success And Then Init Save Out dated Error _ nav ToList With Cancel And Error (){ ĊĊĠĠĠĠĠĠĠ Ġval Ġtest Phone Numbers Ġ= Ġdefault Contact Ph ones With One Phone () ĊĠĠĠĠĠĠĠ Ġval Ġtest Contact Item Ġ= Ġdefault Contact Item () ĊĠĠĠĠĠĠĠ Ġval Ġtest Mode With Item And State Ġ= ĠInteraction Mode With Black list Contact Item And Numbers And Valid State ( ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġmode Ġ= ĠInteraction Mode . CREATE , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġcontact Item Ġ= Ġtest Contact Item , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġphone Numbers Ġ= Ġtest Phone Numbers , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠisValid To Save Ġ= Ġfalse ) ĊĠĠĠĠĠĠĠ Ġval ĠtestData ViewState Ġ= ĠBlack list Contact Options ViewState . Data ViewState ( test Mode With Item And State ) ĊĠĠĠĠĠĠĠ Ġval Ġtest List Route WithError Ġ= ĠBlack list Contact Options Nav Data . List Route With Cancel And Changed Or Deleted Error () ĊĠĠĠĠĠĠĠ Ġval Ġmock Loading ViewState Ġ: ĠBlack list Contact Options ViewState . Loading ViewState Ġ= Ġmock () ĊĠĠĠĠĠĠĠ Ġval Ġtest Save Scheduler Ġ= ĠTest Scheduler () ĊĊĠĠĠĠĠĠĠ Ġwhenever ( mock Get Interaction Mode With Item And Valid UseCase . build ()) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. thenReturn ( Single . just ( test Mode With Item And State )) ĊĠĠĠĠĠĠĠ Ġwhenever ( mock Save Contact With Only Black list Ph ones With Delete Selections UseCase . build ( test Contact Item , Ġtest Phone Numbers )) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. thenReturn ( Comp letable . error ( Out dated DataException ()) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. observe On ( test Save Scheduler )) ĊĠĠĠĠĠĠĠ Ġwhenever ( mock Loading ViewState Factory . create ()) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. thenReturn ( mock Loading ViewState ) ĊĠĠĠĠĠĠĠ Ġwhenever ( mock Data ViewState Factory . create ( test Mode With Item And State )) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. thenReturn ( testData ViewState ) ĊĠĠĠĠĠĠĠ Ġwhenever ( mock List Route With Cancel And Error Factory . create ()) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. thenReturn ( test List Route WithError ) ĊĊĠĠĠĠĠĠĠ Ġtest ViewModel . on Init Get Contact And Ph ones () ĊĠĠĠĠĠĠĠ Ġtest ViewModel . on Init Save () ĊĊĠĠĠĠĠĠĠ Ġverify ViewModels Values Calls Count ( ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġloading ViewState Ġ= Ġmock Loading ViewState , Ġtimes Loading Called Ġ= Ġ 2 , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġlist WithError Route Ġ= Ġtest List Route WithError , Ġtimes List WithError Called Ġ= Ġ 0 ) ĊĊĠĠĠĠĠĠĠ Ġtest Save Scheduler . trigger Actions () ĊĊĠĠĠĠĠĠĠ Ġverify ViewModels Values Calls Count ( ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġloading ViewState Ġ= Ġmock Loading ViewState , Ġtimes Loading Called Ġ= Ġ 2 , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġlist WithError Route Ġ= Ġtest List Route WithError , Ġtimes List WithError Called Ġ= Ġ 1 ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġtest OnInit Get Success And Then Init Cancel Success _ nav ToList With Cancelled (){ ĊĊĠĠĠĠĠĠĠ Ġval Ġtest Mode With Item And State Ġ= Ġdefault Create Mode And Contact With One Phone () ĊĠĠĠĠĠĠĠ Ġval ĠtestData ViewState Ġ= ĠBlack list Contact Options ViewState . Data ViewState ( test Mode With Item And State ) ĊĠĠĠĠĠĠĠ Ġval Ġtest List With Cancelled Route Ġ= ĠBlack list Contact Options Nav Data . List Route ( Saving Result . C ANCE LED ) ĊĠĠĠĠĠĠĠ Ġval Ġmock Loading ViewState Ġ: ĠBlack list Contact Options ViewState . Loading ViewState Ġ= Ġmock () ĊĠĠĠĠĠĠĠ Ġval Ġtest Delete All Scheduler Ġ= ĠTest Scheduler () ĊĊĠĠĠĠĠĠĠ Ġwhenever ( mock Get Interaction Mode With Item And Valid UseCase . build ()) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. thenReturn ( Single . just ( test Mode With Item And State )) ĊĠĠĠĠĠĠĠ Ġwhenever ( mock Delete All Selections UseCase . build ()) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. thenReturn ( Comp letable . complete () ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. observe On ( test Delete All Scheduler )) ĊĠĠĠĠĠĠĠ Ġwhenever ( mock Loading ViewState Factory . create ()). thenReturn ( mock Loading ViewState ) ĊĠĠĠĠĠĠĠ Ġwhenever ( mock Data ViewState Factory . create ( test Mode With Item And State )). thenReturn ( testData ViewState ) ĊĠĠĠĠĠĠĠ Ġwhenever ( mock List Route Factory . create ( Saving Result . C ANCE LED )). thenReturn ( test List With Cancelled Route ) ĊĊĠĠĠĠĠĠĠ Ġtest ViewModel . on Init Get Contact And Ph ones () ĊĠĠĠĠĠĠĠ Ġtest ViewModel . on Init Cancel () ĊĊĠĠĠĠĠĠĠ Ġverify ViewModels Values Calls Count ( ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġloading ViewState Ġ= Ġmock Loading ViewState , Ġtimes Loading Called Ġ= Ġ 2 , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġlist Route Ġ= Ġtest List With Cancelled Route , Ġtimes List Route Called Ġ= Ġ 0 ) ĊĊĠĠĠĠĠĠĠ Ġtest Delete All Scheduler . trigger Actions () ĊĊĠĠĠĠĠĠĠ Ġverify ViewModels Values Calls Count ( ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġloading ViewState Ġ= Ġmock Loading ViewState , Ġtimes Loading Called Ġ= Ġ 2 , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġlist Route Ġ= Ġtest List With Cancelled Route , Ġtimes List Route Called Ġ= Ġ 1 ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġtest OnInit Get Success And Then Init Change Schedule Success _ show Data And Nav To Intervals (){ ĊĊĠĠĠĠĠĠĠ Ġval Ġtest Position Ġ= Ġ 0 ĊĠĠĠĠĠĠĠ Ġval Ġtest Mode With Item And State Ġ= Ġdefault Create Mode And Contact With One Phone () ĊĠĠĠĠĠĠĠ Ġval Ġtest Activity Interval Route Ġ= ĠBlack list Contact Options Nav Data . Activity Interval Details Route () ĊĠĠĠĠĠĠĠ Ġval Ġmock Loading ViewState Ġ: ĠBlack list Contact Options ViewState . Loading ViewState Ġ= Ġmock () ĊĠĠĠĠĠĠĠ Ġval Ġtest Select For Edit Scheduler Ġ= ĠTest Scheduler () ĊĊĠĠĠĠĠĠĠ Ġwhenever ( mock Get Interaction Mode With Item And Valid UseCase . build ()) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. thenReturn ( Single . just ( test Mode With Item And State )) ĊĠĠĠĠĠĠĠ Ġwhenever ( mock Select For Edit Activity Intervals UseCase . build ( test Position )) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. thenReturn ( Comp letable . complete () ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. observe On ( test Select For Edit Scheduler )) ĊĠĠĠĠĠĠĠ Ġwhenever ( mock Loading ViewState Factory . create ()). thenReturn ( mock Loading ViewState ) ĊĠĠĠĠĠĠĠ Ġwhenever ( mock Activity Interval Details Route Factory . create ()). thenReturn ( test Activity Interval Route ) ĊĠĠĠĠĠĠĠ Ġdo Answer Ġ{ Ġinvocation On Mock Ġ-> ĊĠĠĠĠĠĠĠĠĠĠĠ ĠBlack list Contact Options ViewState . Data ViewState ( invocation On Mock . arguments [ 0 ] Ġas ĠInteraction Mode With Black list Contact Item And Numbers And Valid State ) Ġ} ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. wh enever ( mock Data ViewState Factory ). create ( any ()) ĊĊĠĠĠĠĠĠĠ Ġtest ViewModel . on Init Get Contact And Ph ones () ĊĠĠĠĠĠĠĠ Ġtest ViewModel . on Init Change Schedule ( test Position ) ĊĊĠĠĠĠĠĠĠ Ġverify ViewModels Values Calls Count ( ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġloading ViewState Ġ= Ġmock Loading ViewState , Ġtimes Loading Called Ġ= Ġ 2 , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġdata ViewState Ġ= ĠBlack list Contact Options ViewState . Data ViewState ( test Mode With Item And State ), Ġtimes Data Called Ġ= Ġ 1 , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġinterval Details Route Ġ= Ġtest Activity Interval Route , Ġtimes Interval Details Route Called Ġ= Ġ 0 ) ĊĊĠĠĠĠĠĠĠ Ġtest Select For Edit Scheduler . trigger Actions () ĊĊĠĠĠĠĠĠĠ Ġverify ViewModels Values Calls Count ( ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġloading ViewState Ġ= Ġmock Loading ViewState , Ġtimes Loading Called Ġ= Ġ 2 , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġdata ViewState Ġ= ĠBlack list Contact Options ViewState . Data ViewState ( test Mode With Item And State ), Ġtimes Data Called Ġ= Ġ 2 , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġinterval Details Route Ġ= Ġtest Activity Interval Route , Ġtimes Interval Details Route Called Ġ= Ġ 1 ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġtest OnInit Get And Then Init Change Schedule And Then On Schedule Changed Success _ show Data (){ ĊĊĠĠĠĠĠĠĠ Ġval Ġtest Position Ġ= Ġ 0 ĊĠĠĠĠĠĠĠ Ġval Ġtest Mode With Item And State Ġ= Ġdefault Create Mode And Contact With One Phone () ĊĠĠĠĠĠĠĠ Ġval Ġtest Activity Intervals Route Ġ= ĠBlack list Contact Options Nav Data . Activity Interval Details Route () ĊĠĠĠĠĠĠĠ Ġval Ġmock Loading ViewState Ġ: ĠBlack list Contact Options ViewState . Loading ViewState Ġ= Ġmock () ĊĠĠĠĠĠĠĠ Ġval Ġtest Schedule Changed Scheduler Ġ= ĠTest Scheduler () ĊĊĠĠĠĠĠĠĠ Ġwhenever ( mock Get Interaction Mode With Item And Valid UseCase . build ()) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. thenReturn ( Single . just ( test Mode With Item And State )) ĊĠĠĠĠĠĠĠ Ġwhenever ( mock Select For Edit Activity Intervals UseCase . build ( test Position )) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. thenReturn ( Comp letable . complete ()) ĊĠĠĠĠĠĠĠ Ġwhenever ( mock Save Selected Interval UseCase . build ( test Position )) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. thenReturn ( Comp letable . complete () ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. observe On ( test Schedule Changed Scheduler )) ĊĠĠĠĠĠĠĠ Ġwhenever ( mock Loading ViewState Factory . create ()). thenReturn ( mock Loading ViewState ) ĊĠĠĠĠĠĠĠ Ġwhenever ( mock Activity Interval Details Route Factory . create ()) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. thenReturn ( test Activity Intervals Route ) ĊĠĠĠĠĠĠĠ Ġdo Answer Ġ{ Ġinvocation On Mock Ġ-> ĊĠĠĠĠĠĠĠĠĠĠĠ ĠBlack list Contact Options ViewState . Data ViewState ( invocation On Mock . arguments [ 0 ] Ġas ĠInteraction Mode With Black list Contact Item And Numbers And Valid State ) Ġ} ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. wh enever ( mock Data ViewState Factory ). create ( any ()) ĊĊĠĠĠĠĠĠĠ Ġtest ViewModel . on Init Get Contact And Ph ones () ĊĠĠĠĠĠĠĠ Ġtest ViewModel . on Init Change Schedule ( test Position ) ĊĠĠĠĠĠĠĠ Ġtest ViewModel . on Schedule Changed () ĊĊĠĠĠĠĠĠĠ Ġverify ViewModels Values Calls Count ( ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġloading ViewState Ġ= Ġmock Loading ViewState , Ġtimes Loading Called Ġ= Ġ 3 , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġdata ViewState Ġ= ĠBlack list Contact Options ViewState . Data ViewState ( test Mode With Item And State ), Ġtimes Data Called Ġ= Ġ 2 , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġinterval Details Route Ġ= Ġtest Activity Intervals Route , Ġtimes Interval Details Route Called Ġ= Ġ 1 ) ĊĊĠĠĠĠĠĠĠ Ġtest Schedule Changed Scheduler . trigger Actions () ĊĊĠĠĠĠĠĠĠ Ġverify ViewModels Values Calls Count ( ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġloading ViewState Ġ= Ġmock Loading ViewState , Ġtimes Loading Called Ġ= Ġ 3 , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġdata ViewState Ġ= ĠBlack list Contact Options ViewState . Data ViewState ( test Mode With Item And State ), Ġtimes Data Called Ġ= Ġ 3 , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġinterval Details Route Ġ= Ġtest Activity Intervals Route , Ġtimes Interval Details Route Called Ġ= Ġ 1 ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġtest OnInit Get And Then Init Change Schedule And Then On Schedule Changed Out dated Error _ nav ToList With Cancel And Error (){ ĊĊĠĠĠĠĠĠĠ Ġval Ġtest Position Ġ= Ġ 0 ĊĠĠĠĠĠĠĠ Ġval Ġtest Mode With Item And State Ġ= Ġdefault Create Mode And Contact With One Phone () ĊĠĠĠĠĠĠĠ Ġval Ġtest Details Route Ġ= ĠBlack list Contact Options Nav Data . Activity Interval Details Route () ĊĠĠĠĠĠĠĠ Ġval Ġtest List WithError Route Ġ= ĠBlack list Contact Options Nav Data . List Route With Cancel And Changed Or Deleted Error () ĊĠĠĠĠĠĠĠ Ġval Ġmock Loading ViewState Ġ: ĠBlack list Contact Options ViewState . Loading ViewState Ġ= Ġmock () ĊĠĠĠĠĠĠĠ Ġval Ġtest Schedule Changed Scheduler Ġ= ĠTest Scheduler () ĊĊĠĠĠĠĠĠĠ Ġwhenever ( mock Get Interaction Mode With Item And Valid UseCase . build ()) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. thenReturn ( Single . just ( test Mode With Item And State )) ĊĠĠĠĠĠĠĠ Ġwhenever ( mock Select For Edit Activity Intervals UseCase . build ( test Position )) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. thenReturn ( Comp letable . complete ()) ĊĠĠĠĠĠĠĠ Ġwhenever ( mock Save Selected Interval UseCase . build ( test Position )) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. thenReturn ( Comp letable . error ( Out dated DataException ()) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. observe On ( test Schedule Changed Scheduler )) ĊĠĠĠĠĠĠĠ Ġwhenever ( mock Loading ViewState Factory . create ()). thenReturn ( mock Loading ViewState ) ĊĠĠĠĠĠĠĠ Ġwhenever ( mock Activity Interval Details Route Factory . create ()). thenReturn ( test Details Route ) ĊĠĠĠĠĠĠĠ Ġwhenever ( mock List Route With Cancel And Error Factory . create ()). thenReturn ( test List WithError Route ) ĊĠĠĠĠĠĠĠ Ġdo Answer Ġ{ Ġinvocation On Mock Ġ-> ĊĠĠĠĠĠĠĠĠĠĠĠ ĠBlack list Contact Options ViewState . Data ViewState ( invocation On Mock . arguments [ 0 ] Ġas ĠInteraction Mode With Black list Contact Item And Numbers And Valid State ) Ġ} ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. wh enever ( mock Data ViewState Factory ). create ( any ()) ĊĊĠĠĠĠĠĠĠ Ġtest ViewModel . on Init Get Contact And Ph ones () ĊĠĠĠĠĠĠĠ Ġtest ViewModel . on Init Change Schedule ( test Position ) ĊĠĠĠĠĠĠĠ Ġtest ViewModel . on Schedule Changed () ĊĊĠĠĠĠĠĠĠ Ġverify ViewModels Values Calls Count ( ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġloading ViewState Ġ= Ġmock Loading ViewState , Ġtimes Loading Called Ġ= Ġ 3 , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġdata ViewState Ġ= ĠBlack list Contact Options ViewState . Data ViewState ( test Mode With Item And State ), Ġtimes Data Called Ġ= Ġ 2 , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġinterval Details Route Ġ= Ġtest Details Route , Ġtimes Interval Details Route Called Ġ= Ġ 1 , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġlist WithError Route Ġ= Ġtest List WithError Route , Ġtimes List WithError Called Ġ= Ġ 0 ) ĊĊĠĠĠĠĠĠĠ Ġtest Schedule Changed Scheduler . trigger Actions () ĊĊĠĠĠĠĠĠĠ Ġverify ViewModels Values Calls Count ( ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġloading ViewState Ġ= Ġmock Loading ViewState , Ġtimes Loading Called Ġ= Ġ 3 , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġdata ViewState Ġ= ĠBlack list Contact Options ViewState . Data ViewState ( test Mode With Item And State ), Ġtimes Data Called Ġ= Ġ 2 , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġinterval Details Route Ġ= Ġtest Details Route , Ġtimes Interval Details Route Called Ġ= Ġ 1 , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġlist WithError Route Ġ= Ġtest List WithError Route , Ġtimes List WithError Called Ġ= Ġ 1 ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġtest OnInit Get And Then On Set Is Calls Blocked _ show Up d Data With Valid To Save (){ ĊĊĠĠĠĠĠĠĠ Ġval Ġtest Valid To Save Ġ= Ġfalse ĊĠĠĠĠĠĠĠ Ġval Ġtest Position Ġ= Ġ 0 ĊĠĠĠĠĠĠĠ Ġval Ġtest Is Calls Blocked Ġ= Ġtrue ĊĠĠĠĠĠĠĠ Ġval Ġtest Changed Calls Blocked Phone Numbers Ġ= ĠlistOf ( Black list Contact PhoneNumber Item ( db Id Ġ= Ġ 0 , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġdevice Db Id Ġ= Ġ 0 , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġnumber Ġ= Ġ" 1 2 4 3 5 ", ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġis Calls Blocked Ġ= Ġtest Is Calls Blocked , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġis Sms Blocked Ġ= Ġfalse )) ĊĠĠĠĠĠĠĠ Ġval Ġtest Contact Item Ġ= Ġdefault Contact Item () ĊĊĠĠĠĠĠĠĠ Ġval Ġtest Mode With Item And State Ġ= ĠInteraction Mode With Black list Contact Item And Numbers And Valid State ( ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġmode Ġ= ĠInteraction Mode . CREATE , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġcontact Item Ġ= Ġtest Contact Item , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġphone Numbers Ġ= Ġtest Changed Calls Blocked Phone Numbers , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠisValid To Save Ġ= Ġ! test Valid To Save ) ĊĊĠĠĠĠĠĠĠ Ġval Ġtest Mode With Item And State After Change Valid Ġ= ĠInteraction Mode With Black list Contact Item And Numbers And Valid State ( ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġmode Ġ= ĠInteraction Mode . CREATE , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġcontact Item Ġ= Ġtest Contact Item , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġphone Numbers Ġ= Ġtest Changed Calls Blocked Phone Numbers , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠisValid To Save Ġ= Ġtest Valid To Save ) ĊĠĠĠĠĠĠĠ Ġval Ġmock Loading ViewState Ġ: ĠBlack list Contact Options ViewState . Loading ViewState Ġ= Ġmock () ĊĠĠĠĠĠĠĠ Ġval Ġtest Validate Scheduler Ġ= ĠTest Scheduler () ĊĊĠĠĠĠĠĠĠ Ġwhenever ( mock Get Interaction Mode With Item And Valid UseCase . build ()) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. thenReturn ( Single . just ( test Mode With Item And State )) ĊĠĠĠĠĠĠĠ Ġwhenever ( mock Validate Phone Numbers For Save Sync UseCase . build ( test Changed Calls Blocked Phone Numbers )) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. thenReturn ( Single . just ( test Valid To Save ) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. observe On ( test Validate Scheduler )) ĊĠĠĠĠĠĠĠ Ġwhenever ( mock Loading ViewState Factory . create ()). thenReturn ( mock Loading ViewState ) ĊĠĠĠĠĠĠĠ Ġdo Answer Ġ{ Ġinvocation On Mock Ġ-> ĊĠĠĠĠĠĠĠĠĠĠĠ ĠBlack list Contact Options ViewState . Data ViewState ( invocation On Mock . arguments [ 0 ] Ġas ĠInteraction Mode With Black list Contact Item And Numbers And Valid State ) Ġ} ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. wh enever ( mock Data ViewState Factory ). create ( any ()) ĊĊĠĠĠĠĠĠĠ Ġtest ViewModel . on Init Get Contact And Ph ones () ĊĠĠĠĠĠĠĠ Ġtest ViewModel . on Set Is Calls Blocked ( test Position , Ġtest Is Calls Blocked ) ĊĊĠĠĠĠĠĠĠ Ġverify ViewModels Values Calls Count ( ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġloading ViewState Ġ= Ġmock Loading ViewState , Ġtimes Loading Called Ġ= Ġ 1 , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġdata ViewState Ġ= ĠBlack list Contact Options ViewState . Data ViewState ( test Mode With Item And State ), Ġtimes Data Called Ġ= Ġ 1 ) ĊĊĠĠĠĠĠĠĠ Ġverify ( mock ViewState Data , Ġtimes ( 1 )). value Ġ= Ġmock Loading ViewState ĊĠĠĠĠĠĠĠ Ġverify ( mock ViewState Data , Ġtimes ( 1 )). value Ġ= ĠBlack list Contact Options ViewState . Data ViewState ( test Mode With Item And State ) ĊĊĠĠĠĠĠĠĠ Ġtest Validate Scheduler . trigger Actions () ĊĊĠĠĠĠĠĠĠ Ġverify ViewModels Values Calls Count ( ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġloading ViewState Ġ= Ġmock Loading ViewState , Ġtimes Loading Called Ġ= Ġ 1 , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġdata ViewState Ġ= ĠBlack list Contact Options ViewState . Data ViewState ( test Mode With Item And State ), Ġtimes Data Called Ġ= Ġ 2 ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġprivate Ġfun Ġverify ViewModels Values Calls Count ( data ViewState : ĠBlack list Contact Options ViewState . Data ViewState ? Ġ= Ġnull , Ġtimes Data Called : ĠInt ? Ġ= Ġnull , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġloading ViewState : ĠBlack list Contact Options ViewState . Loading ViewState ? Ġ= Ġnull , Ġtimes Loading Called : ĠInt ? Ġ= Ġnull , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġlist Route : ĠBlack list Contact Options Nav Data . List Route ? Ġ= Ġnull , Ġtimes List Route Called : ĠInt ? Ġ= Ġnull , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġlist WithError Route : ĠBlack list Contact Options Nav Data . List Route With Cancel And Changed Or Deleted Error ? Ġ= Ġnull , Ġtimes List WithError Called : ĠInt ? Ġ= Ġnull , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġinterval Details Route : ĠBlack list Contact Options Nav Data . Activity Interval Details Route ? Ġ= Ġnull , Ġtimes Interval Details Route Called : ĠInt ? Ġ= Ġnull ) Ġ{ ĊĠĠĠĠĠĠĠ Ġverify Mock LiveData If NonNull s Settings ( mock ViewState Data , Ġtimes Data Called , Ġdata ViewState ) ĊĠĠĠĠĠĠĠ Ġverify Mock LiveData If NonNull s Settings ( mock ViewState Data , Ġtimes Loading Called , Ġloading ViewState ) ĊĠĠĠĠĠĠĠ Ġverify Mock LiveData If NonNull s Settings ( mock Navigate Single Data , Ġtimes List Route Called , Ġlist Route ) ĊĠĠĠĠĠĠĠ Ġverify Mock LiveData If NonNull s Settings ( mock Navigate Single Data , Ġtimes List WithError Called , Ġlist WithError Route ) ĊĠĠĠĠĠĠĠ Ġverify Mock LiveData If NonNull s Settings ( mock Navigate Single Data , Ġtimes Interval Details Route Called , Ġinterval Details Route ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġprivate Ġfun Ġ< T > Ġverify Mock LiveData If NonNull s Settings ( mock LiveData : ĠMutable LiveData < T >, ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġtimes Data Called : ĠInt ? Ġ= Ġnull , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġdata ViewState : ĠT ? Ġ= Ġnull ) Ġ{ ĊĠĠĠĠĠĠĠ Ġif ( data ViewState Ġ!= Ġnull Ġ&& Ġtimes Data Called Ġ!= Ġnull ){ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġverify ( mock LiveData , Ġtimes ( times Data Called )). value Ġ= Ġdata ViewState ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġprivate Ġfun Ġdefault Create Mode And Contact With One Phone () Ġ: ĠInteraction Mode With Black list Contact Item And Numbers And Valid State Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn ĠInteraction Mode With Black list Contact Item And Numbers And Valid State ( mode Ġ= ĠInteraction Mode . CREATE , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġcontact Item Ġ= Ġdefault Contact Item (), ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġphone Numbers Ġ= Ġdefault Contact Ph ones With One Phone (), ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠisValid To Save Ġ= Ġfalse ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġprivate Ġfun Ġdefault Contact Item () Ġ: ĠBlack list Contact Item Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn ĠBlack list Contact Item ( db Id Ġ= Ġ 0 , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġdevice Db Id Ġ= Ġ 0 , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġdevice Key Ġ= Ġ" 1 2 3 ", ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġname Ġ= Ġ" name ", ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġphoto Url Ġ= Ġ" localhost ") ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġprivate Ġfun Ġdefault Contact Ph ones With One Phone () Ġ: ĠList < Black list Contact PhoneNumber Item > Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn ĠlistOf ( Black list Contact PhoneNumber Item ( db Id Ġ= Ġ 0 , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġdevice Db Id Ġ= Ġ 0 , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġnumber Ġ= Ġ" 1 2 4 3 5 ", ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġis Calls Blocked Ġ= Ġfalse , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġis Sms Blocked Ġ= Ġfalse )) ĊĠĠĠ Ġ} Ċ }