package Ġcom . sem icolon . domain . use case . user Ċ Ċ import Ġcom . n ha ar man . mock it ok otlin 2 . mock Ċ import Ġcom . n ha ar man . mock it ok otlin 2 . times Ċ import Ġcom . n ha ar man . mock it ok otlin 2 . verify Ċ import Ġcom . sem icolon . domain . param . user . Verify PhoneNumber SignUp Param Ċ import Ġcom . sem icolon . domain . repository . UserRepository Ċ import Ġkotlinx . coroutines . run Blocking Ċ import Ġorg . junit . Assert . assertEquals Ċ import Ġorg . junit . Test Ċ Ċ class ĠVerify User PhoneNumber UseCase UnitTest Ġ{ ĊĊĠĠĠ Ġprivate Ġval Ġuser Repository Ġ= Ġmock < UserRepository >() ĊĊĠĠĠ Ġprivate Ġval Ġverify User PhoneNumber UseCase Ġ= ĠVerify User PhoneNumber UseCase ( user Repository ) ĊĊĠĠĠ Ġprivate Ġval Ġverify PhoneNumber SignUp Param Ġ= Ġmock < Verify PhoneNumber SignUp Param >() ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġtest Verify User PhoneNumber UseCase () Ġ{ ĊĊĠĠĠĠĠĠĠ Ġrun Blocking Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġval Ġuse Case Result Ġ= Ġverify User PhoneNumber UseCase . execute ( verify PhoneNumber SignUp Param ) ĊĊĠĠĠĠĠĠĠĠĠĠĠ ĠassertEquals ( Unit , Ġuse Case Result ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġverify ( user Repository , Ġtimes ( 1 )). verify User PhoneNumber ( verify PhoneNumber SignUp Param ) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} Ċ }