package Ġchat . rocket . android . authentication . signup . presentation Ċ Ċ import Ġchat . rocket . android . analytics . Analytics Manager Ċ import Ġchat . rocket . android . authentication . presentation . Authentication Navigator Ċ import Ġchat . rocket . android . core . lifecycle . Cancel Strategy Ċ import Ġchat . rocket . android . infrastructure . Local Repository Ċ import Ġchat . rocket . android . server . domain .* Ċ import Ġchat . rocket . android . server . infrastructure . Rocket Chat Client Factory Ċ import Ġorg . junit . Before Ċ import Ġorg . junit . Test Ċ import Ġorg . mockito . Mockito .* Ċ import Ġorg . mockito . Mockito Annotations Ċ import Ġtest Config . Config . Companion . CURRENT _ SERVER Ċ import Ġtest Config . Config . Companion . PRIV ACY _ POLICY _ URL Ċ import Ġtest Config . Config . Companion . TERMS _ OF _ SERVICE _ URL Ċ Ċ class ĠSign up Presenter Test Ġ{ ĊĊĠĠĠ Ġprivate Ġval Ġview Ġ= Ġmock ( Signup View :: class . java ) ĊĠĠĠ Ġprivate Ġval Ġstrategy Ġ= Ġmock ( Cancel Strategy :: class . java ) ĊĠĠĠ Ġprivate Ġval Ġnavigator Ġ= Ġmock ( Authentication Navigator :: class . java ) ĊĠĠĠ Ġprivate Ġval Ġlocal Repository Ġ= Ġmock ( Local Repository :: class . java ) ĊĠĠĠ Ġprivate Ġval Ġsettings Interactor Ġ= Ġmock ( Get Settings Interactor :: class . java ) ĊĠĠĠ Ġprivate Ġval Ġanalytics Manager Ġ= Ġmock ( Analytics Manager :: class . java ) ĊĠĠĠ Ġprivate Ġval Ġsave Current Server Interactor Ġ= Ġmock ( Save Current Server Interactor :: class . java ) ĊĠĠĠ Ġprivate Ġval Ġsave Account Interactor Ġ= Ġmock ( Save Account Interactor :: class . java ) ĊĠĠĠ Ġprivate Ġval Ġfactory Ġ= Ġmock ( Rocket Chat Client Factory :: class . java ) ĊĠĠĠ Ġprivate Ġval Ġserver Interactor Ġ= Ġmock ( Get Connecting Server Interactor :: class . java ) ĊĠĠĠ Ġprivate Ġval Ġtoken Repository Ġ= Ġmock ( Token Repository :: class . java ) ĊĊĠĠĠ Ġlateinit Ġvar Ġsign Up Presenter : ĠSign up Presenter ĊĊĠĠĠ Ġ@ Before ĊĠĠĠ Ġfun ĠsetUp () Ġ{ ĊĠĠĠĠĠĠĠ ĠMockito Annotations . init Mocks ( this ) ĊĠĠĠĠĠĠĠ Ġ` when `( server Interactor . get ()). thenReturn ( CURRENT _ SERVER ) ĊĠĠĠĠĠĠĠ Ġsign Up Presenter Ġ= ĠSign up Presenter ( view , Ġstrategy , Ġnavigator , Ġlocal Repository , Ġserver Interactor , Ġsave Current Server Interactor , ĊĠĠĠĠĠĠĠĠĠĠĠ Ġanalytics Manager , Ġfactory , Ġsave Account Interactor , Ġtoken Repository , Ġsettings Interactor ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġ` navigate Ġto Ġto s Ġweb Ġpage `() Ġ{ ĊĠĠĠĠĠĠĠ Ġsign Up Presenter . terms Of Service () ĊĠĠĠĠĠĠĠ Ġverify ( navigator ). to Web Page ( TERMS _ OF _ SERVICE _ URL ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġ` navigate Ġto Ġprivacy Ġpolicy Ġweb Ġpage `() Ġ{ ĊĠĠĠĠĠĠĠ Ġsign Up Presenter . privacy Policy () ĊĠĠĠĠĠĠĠ Ġverify ( navigator ). to Web Page ( PRIV ACY _ POLICY _ URL ) ĊĠĠĠ Ġ} Ċ }