package Ġcom . is up atches . wise fy Ċ Ċ import Ġcom . is up atches . wise fy . callbacks . Search For SS IDs Callbacks Ċ import Ġcom . is up atches . wise fy . constants . MISSING _ PARAMETER Ċ import Ġcom . is up atches . wise fy . internal . base . Base Instrumentation Test Ċ import Ġorg . junit . Assert . assertEquals Ċ import Ġorg . junit . Test Ċ import Ġorg . mockito . Mockito . mock Ċ import Ġorg . mockito . Mockito . timeout Ċ import Ġorg . mockito . Mockito . verify Ċ Ċ /** Ċ Ġ* ĠUsed Ġto Ġtest Ġthe Ġfunctionality Ġto Ġsearch Ġfor ĠSS IDs Ġnearby . Ċ Ġ* Ċ Ġ* Ġ@ author ĠPat ches Ċ Ġ* Ġ@ since Ġ 3 . 0 Ċ Ġ*/ Ċ internal Ġclass ĠSearch For SS IDs Tests Ġ: ĠBase Instrumentation Test () Ġ{ ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġsync _ failure _ pre check () Ġ{ ĊĠĠĠĠĠĠĠ Ġmock Wise Fy Pre checks Util . search For SS IDs _ failure () ĊĠĠĠĠĠĠĠ ĠassertEquals ( null , Ġwise fy . search For SS IDs ( TEST _ SSID )) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġsync _ failure () Ġ{ ĊĠĠĠĠĠĠĠ Ġmock Wise Fy Pre checks Util . search For SS IDs _ success () ĊĠĠĠĠĠĠĠ Ġmock Wise Fy Search Util . find SS IDs Matching Regex _ null () ĊĠĠĠĠĠĠĠ ĠassertEquals ( null , Ġwise fy . search For SS IDs ( TEST _ SSID )) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġsync _ success () Ġ{ ĊĠĠĠĠĠĠĠ Ġmock Wise Fy Pre checks Util . search For SS IDs _ success () ĊĠĠĠĠĠĠĠ Ġval Ġss ids Ġ= Ġmock Wise Fy Search Util . find SS IDs Matching Regex _ success () ĊĠĠĠĠĠĠĠ ĠassertEquals ( ss ids , Ġwise fy . search For SS IDs ( TEST _ SSID )) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġasync _ failure _ pre checks () Ġ{ ĊĠĠĠĠĠĠĠ Ġmock Wise Fy Pre checks Util . search For SS IDs _ failure () ĊĠĠĠĠĠĠĠ Ġval Ġmock Callbacks Ġ= Ġmock ( Search For SS IDs Callbacks :: class . java ) ĊĠĠĠĠĠĠĠ Ġwise fy . search For SS IDs ( TEST _ SSID , Ġmock Callbacks ) ĊĠĠĠĠĠĠĠ Ġverify ( mock Callbacks , Ġtimeout ( VER IFICATION _ SUCCESS _ TIMEOUT )). wise fy Failure ( MISSING _ PARAMETER ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġasync _ failure _ pre checks _ null Callback () Ġ{ ĊĠĠĠĠĠĠĠ Ġmock Wise Fy Pre checks Util . search For SS IDs _ failure () ĊĠĠĠĠĠĠĠ Ġnull Callback Util . call Search For SS IDs ( TEST _ SSID ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġasync _ failure () Ġ{ ĊĠĠĠĠĠĠĠ Ġmock Wise Fy Pre checks Util . search For SS IDs _ success () ĊĠĠĠĠĠĠĠ Ġmock Wise Fy Search Util . find SS IDs Matching Regex _ null () ĊĠĠĠĠĠĠĠ Ġval Ġmock Callbacks Ġ= Ġmock ( Search For SS IDs Callbacks :: class . java ) ĊĠĠĠĠĠĠĠ Ġwise fy . search For SS IDs ( TEST _ SSID , Ġmock Callbacks ) ĊĠĠĠĠĠĠĠ Ġverify ( mock Callbacks , Ġtimeout ( VER IFICATION _ SUCCESS _ TIMEOUT )). no SS IDs Found () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġasync _ failure _ null Callback () Ġ{ ĊĠĠĠĠĠĠĠ Ġmock Wise Fy Pre checks Util . search For SS IDs _ success () ĊĠĠĠĠĠĠĠ Ġmock Wise Fy Search Util . find SS IDs Matching Regex _ null () ĊĠĠĠĠĠĠĠ Ġnull Callback Util . call Search For SS IDs ( TEST _ SSID ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġasync _ success () Ġ{ ĊĠĠĠĠĠĠĠ Ġmock Wise Fy Pre checks Util . search For SS IDs _ success () ĊĠĠĠĠĠĠĠ Ġval Ġss ids Ġ= Ġmock Wise Fy Search Util . find SS IDs Matching Regex _ success () ĊĠĠĠĠĠĠĠ Ġval Ġmock Callbacks Ġ= Ġmock ( Search For SS IDs Callbacks :: class . java ) ĊĠĠĠĠĠĠĠ Ġwise fy . search For SS IDs ( TEST _ SSID , Ġmock Callbacks ) ĊĠĠĠĠĠĠĠ Ġverify ( mock Callbacks , Ġtimeout ( VER IFICATION _ SUCCESS _ TIMEOUT )). retrie ved SS IDs ( ss ids ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġasync _ success _ null Callback () Ġ{ ĊĠĠĠĠĠĠĠ Ġmock Wise Fy Pre checks Util . search For SS IDs _ success () ĊĠĠĠĠĠĠĠ Ġmock Wise Fy Search Util . find SS IDs Matching Regex _ success () ĊĠĠĠĠĠĠĠ Ġnull Callback Util . call Search For SS IDs ( TEST _ SSID ) ĊĠĠĠ Ġ} Ċ } Ċ