package Ġcom . is up atches . wise fy Ċ Ċ import Ġcom . is up atches . wise fy . callbacks . Search For Access Point 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 Ġa Ġset Ġof Ġnearby Ġaccess Ġpoints . Ċ Ġ* Ċ Ġ* Ġ@ author ĠPat ches Ċ Ġ* Ġ@ since Ġ 3 . 0 Ċ Ġ*/ Ċ internal Ġclass ĠSearch For Access Point Tests Ġ: ĠBase Instrumentation Test () Ġ{ ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġsync _ failure _ pre checks _ filter Duplicates _ false () Ġ{ ĊĠĠĠĠĠĠĠ Ġmock Wise Fy Pre checks Util . search For Access Point _ failure () ĊĠĠĠĠĠĠĠ ĠassertEquals ( null , Ġwise fy . search For Access Point ( TEST _ SSID , ĠTEST _ TIMEOUT , Ġfalse )) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġsync _ failure _ pre checks _ filter Duplicates _ true () Ġ{ ĊĠĠĠĠĠĠĠ Ġmock Wise Fy Pre checks Util . search For Access Point _ failure () ĊĠĠĠĠĠĠĠ ĠassertEquals ( null , Ġwise fy . search For Access Point ( TEST _ SSID , ĠTEST _ TIMEOUT , Ġtrue )) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġsync _ failure _ filter Duplicates _ false () Ġ{ ĊĠĠĠĠĠĠĠ Ġmock Wise Fy Pre checks Util . search For Access Point _ success () ĊĠĠĠĠĠĠĠ Ġmock Wise Fy Search Util . find Access Point By Regex _ null () ĊĠĠĠĠĠĠĠ ĠassertEquals ( null , Ġwise fy . search For Access Point ( TEST _ SSID , ĠTEST _ TIMEOUT , Ġfalse )) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġsync _ failure _ filter Duplicates _ true () Ġ{ ĊĠĠĠĠĠĠĠ Ġmock Wise Fy Pre checks Util . search For Access Point _ success () ĊĠĠĠĠĠĠĠ Ġmock Wise Fy Search Util . find Access Point By Regex _ null () ĊĠĠĠĠĠĠĠ ĠassertEquals ( null , Ġwise fy . search For Access Point ( TEST _ SSID , ĠTEST _ TIMEOUT , Ġtrue )) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġsync _ success _ filter Duplicates _ false () Ġ{ ĊĠĠĠĠĠĠĠ Ġmock Wise Fy Pre checks Util . search For Access Point _ success () ĊĠĠĠĠĠĠĠ Ġval Ġaccess Point Ġ= Ġmock Wise Fy Search Util . find Access Point By Regex _ success () ĊĠĠĠĠĠĠĠ ĠassertEquals ( access Point , Ġwise fy . search For Access Point ( TEST _ SSID , ĠTEST _ TIMEOUT , Ġfalse )) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġsync _ success _ filter Duplicates _ true () Ġ{ ĊĠĠĠĠĠĠĠ Ġmock Wise Fy Pre checks Util . search For Access Point _ success () ĊĠĠĠĠĠĠĠ Ġval Ġaccess Point Ġ= Ġmock Wise Fy Search Util . find Access Point By Regex _ success () ĊĠĠĠĠĠĠĠ ĠassertEquals ( access Point , Ġwise fy . search For Access Point ( TEST _ SSID , ĠTEST _ TIMEOUT , Ġtrue )) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġasync _ failure _ pre checks _ filter Duplicates _ false () Ġ{ ĊĠĠĠĠĠĠĠ Ġmock Wise Fy Pre checks Util . search For Access Point _ failure () ĊĠĠĠĠĠĠĠ Ġval Ġmock Callbacks Ġ= Ġmock ( Search For Access Point Callbacks :: class . java ) ĊĠĠĠĠĠĠĠ Ġwise fy . search For Access Point ( TEST _ SSID , ĠTEST _ TIMEOUT , Ġfalse , Ġmock Callbacks ) ĊĠĠĠĠĠĠĠ Ġverify ( mock Callbacks , Ġtimeout ( VER IFICATION _ SUCCESS _ TIMEOUT )). wise fy Failure ( MISSING _ PARAMETER ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġasync _ failure _ pre checks _ filter Duplicates _ false _ null Callback () Ġ{ ĊĠĠĠĠĠĠĠ Ġmock Wise Fy Pre checks Util . search For Access Point _ failure () ĊĠĠĠĠĠĠĠ Ġnull Callback Util . call Search For Access Point ( TEST _ SSID , Ġfalse ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġasync _ failure _ pre checks _ filter Duplicates _ true () Ġ{ ĊĠĠĠĠĠĠĠ Ġmock Wise Fy Pre checks Util . search For Access Point _ failure () ĊĠĠĠĠĠĠĠ Ġval Ġmock Callbacks Ġ= Ġmock ( Search For Access Point Callbacks :: class . java ) ĊĠĠĠĠĠĠĠ Ġwise fy . search For Access Point ( TEST _ SSID , ĠTEST _ TIMEOUT , Ġtrue , Ġmock Callbacks ) ĊĠĠĠĠĠĠĠ Ġverify ( mock Callbacks , Ġtimeout ( VER IFICATION _ SUCCESS _ TIMEOUT )). wise fy Failure ( MISSING _ PARAMETER ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġasync _ failure _ pre checks _ filter Duplicates _ true _ null Callback () Ġ{ ĊĠĠĠĠĠĠĠ Ġmock Wise Fy Pre checks Util . search For Access Point _ failure () ĊĠĠĠĠĠĠĠ Ġnull Callback Util . call Search For Access Point ( TEST _ SSID , Ġtrue ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġasync _ failure _ filter Duplicates _ false () Ġ{ ĊĠĠĠĠĠĠĠ Ġmock Wise Fy Pre checks Util . search For Access Point _ success () ĊĠĠĠĠĠĠĠ Ġmock Wise Fy Search Util . find Access Point By Regex _ null () ĊĠĠĠĠĠĠĠ Ġval Ġmock Callbacks Ġ= Ġmock ( Search For Access Point Callbacks :: class . java ) ĊĠĠĠĠĠĠĠ Ġwise fy . search For Access Point ( TEST _ SSID , ĠTEST _ TIMEOUT , Ġfalse , Ġmock Callbacks ) ĊĠĠĠĠĠĠĠ Ġverify ( mock Callbacks , Ġtimeout ( VER IFICATION _ SUCCESS _ TIMEOUT )). access Point NotFound () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġasync _ failure _ filter Duplicates _ false _ null Callback () Ġ{ ĊĠĠĠĠĠĠĠ Ġmock Wise Fy Pre checks Util . search For Access Point _ success () ĊĠĠĠĠĠĠĠ Ġmock Wise Fy Search Util . find Access Point By Regex _ null () ĊĠĠĠĠĠĠĠ Ġnull Callback Util . call Search For Access Point ( TEST _ SSID , Ġfalse ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġasync _ failure _ filter Duplicates _ true () Ġ{ ĊĠĠĠĠĠĠĠ Ġmock Wise Fy Pre checks Util . search For Access Point _ success () ĊĠĠĠĠĠĠĠ Ġmock Wise Fy Search Util . find Access Point By Regex _ null () ĊĠĠĠĠĠĠĠ Ġval Ġmock Callbacks Ġ= Ġmock ( Search For Access Point Callbacks :: class . java ) ĊĠĠĠĠĠĠĠ Ġwise fy . search For Access Point ( TEST _ SSID , ĠTEST _ TIMEOUT , Ġtrue , Ġmock Callbacks ) ĊĠĠĠĠĠĠĠ Ġverify ( mock Callbacks , Ġtimeout ( VER IFICATION _ SUCCESS _ TIMEOUT )). access Point NotFound () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġasync _ failure _ filter Duplicates _ true _ null Callback () Ġ{ ĊĠĠĠĠĠĠĠ Ġmock Wise Fy Pre checks Util . search For Access Point _ success () ĊĠĠĠĠĠĠĠ Ġmock Wise Fy Search Util . find Access Point By Regex _ null () ĊĠĠĠĠĠĠĠ Ġnull Callback Util . call Search For Access Point ( TEST _ SSID , Ġtrue ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġasync _ success _ filter Duplicates _ false () Ġ{ ĊĠĠĠĠĠĠĠ Ġmock Wise Fy Pre checks Util . search For Access Point _ success () ĊĠĠĠĠĠĠĠ Ġval Ġaccess Point Ġ= Ġmock Wise Fy Search Util . find Access Point By Regex _ success () ĊĠĠĠĠĠĠĠ Ġval Ġmock Callbacks Ġ= Ġmock ( Search For Access Point Callbacks :: class . java ) ĊĠĠĠĠĠĠĠ Ġwise fy . search For Access Point ( TEST _ SSID , ĠTEST _ TIMEOUT , Ġfalse , Ġmock Callbacks ) ĊĠĠĠĠĠĠĠ Ġverify ( mock Callbacks , Ġtimeout ( VER IFICATION _ SUCCESS _ TIMEOUT )). access Point Found ( access Point ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġasync _ success _ filter Duplicates _ false _ null Callback () Ġ{ ĊĠĠĠĠĠĠĠ Ġmock Wise Fy Pre checks Util . search For Access Point _ success () ĊĠĠĠĠĠĠĠ Ġmock Wise Fy Search Util . find Access Point By Regex _ success () ĊĠĠĠĠĠĠĠ Ġnull Callback Util . call Search For Access Point ( TEST _ SSID , Ġfalse ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġasync _ success _ filter Duplicates _ true () Ġ{ ĊĠĠĠĠĠĠĠ Ġmock Wise Fy Pre checks Util . search For Access Point _ success () ĊĠĠĠĠĠĠĠ Ġval Ġaccess Point Ġ= Ġmock Wise Fy Search Util . find Access Point By Regex _ success () ĊĠĠĠĠĠĠĠ Ġval Ġmock Callbacks Ġ= Ġmock ( Search For Access Point Callbacks :: class . java ) ĊĠĠĠĠĠĠĠ Ġwise fy . search For Access Point ( TEST _ SSID , ĠTEST _ TIMEOUT , Ġtrue , Ġmock Callbacks ) ĊĠĠĠĠĠĠĠ Ġverify ( mock Callbacks , Ġtimeout ( VER IFICATION _ SUCCESS _ TIMEOUT )). access Point Found ( access Point ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġasync _ success _ filter Duplicates _ true _ null Callback () Ġ{ ĊĠĠĠĠĠĠĠ Ġmock Wise Fy Pre checks Util . search For Access Point _ success () ĊĠĠĠĠĠĠĠ Ġmock Wise Fy Search Util . find Access Point By Regex _ success () ĊĠĠĠĠĠĠĠ Ġnull Callback Util . call Search For Access Point ( TEST _ SSID , Ġtrue ) ĊĠĠĠ Ġ} Ċ } Ċ