package Ġcom . example . ni j ata hm ad li . blockchain wallet . data . remote . mapper Ċ Ċ import Ġcom . example . ni j ata hm ad li . blockchain wallet . data . remote . model . Network Multi Address Ċ import Ġcom . example . ni j ata hm ad li . blockchain wallet . data . remote . model . Network Transaction Ċ import Ġcom . example . ni j ata hm ad li . blockchain wallet . data . remote . model . Network Wallet Ċ import Ġcom . example . ni j ata hm ad li . blockchain wallet . domain . model . Multi Address Ċ import Ġcom . example . ni j ata hm ad li . blockchain wallet . domain . model . Transaction Ċ import Ġcom . example . ni j ata hm ad li . blockchain wallet . domain . model . Wallet Ċ import Ġcom . google . common . truth . Truth . assertThat Ċ import Ġorg . junit . Before Ċ import Ġorg . junit . Test Ċ import Ġorg . mockito . Mock Ċ import Ġorg . mockito . Mockito .` when ` Ċ import Ġorg . mockito . Mockito Annotations ĊĊ Ċ class ĠMulti Address Mapper Test Ġ{ ĊĊĠĠĠ Ġ@ Mock ĊĠĠĠ Ġprivate Ġlateinit Ġvar Ġwallet Mapper : ĠMapper < Network Wallet , ĠWallet > ĊĠĠĠ Ġ@ Mock ĊĠĠĠ Ġprivate Ġlateinit Ġvar Ġtransaction List Mapper : ĠMapper < List < Network Transaction >, ĠList < Transaction >> ĊĊĠĠĠ Ġprivate Ġlateinit Ġvar Ġsut : ĠMulti Address Mapper ĊĊĠĠĠ Ġ@ Mock ĊĠĠĠ Ġprivate Ġlateinit Ġvar Ġnetwork Multi Address : ĠNetwork Multi Address ĊĠĠĠ Ġ@ Mock ĊĠĠĠ Ġprivate Ġlateinit Ġvar Ġnetwork Wallet : ĠNetwork Wallet ĊĠĠĠ Ġ@ Mock ĊĠĠĠ Ġprivate Ġlateinit Ġvar Ġwallet : ĠWallet ĊĠĠĠ Ġ@ Mock ĊĠĠĠ Ġprivate Ġlateinit Ġvar Ġnetwork Transactions : ĠList < Network Transaction > ĊĠĠĠ Ġ@ Mock ĊĠĠĠ Ġprivate Ġlateinit Ġvar Ġtransactions : ĠList < Transaction > ĊĊĠĠĠ Ġ@ Before ĊĠĠĠ Ġfun ĠsetUp () Ġ{ ĊĠĠĠĠĠĠĠ ĠMockito Annotations . init Mocks ( this ) ĊĠĠĠĠĠĠĠ Ġsut Ġ= ĠMulti Address Mapper ( wallet Mapper , Ġtransaction List Mapper ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġmap _ should _ return Empty Multi Address _ when _ network Multi Address IsNull () Ġ{ ĊĊĠĠĠĠĠĠĠ Ġval Ġresult Ġ= Ġsut . map ( null ) ĊĊĠĠĠĠĠĠĠ ĠassertThat ( result ). isEqualTo ( Multi Address ()) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġmap _ should _ return Correct Multi Address _ when _ network Multi Address IsNotNull () Ġ{ ĊĠĠĠĠĠĠĠ Ġ` when `( network Multi Address . wallet ). thenReturn ( network Wallet ) ĊĠĠĠĠĠĠĠ Ġ` when `( network Multi Address . tx s ). thenReturn ( network Transactions ) ĊĠĠĠĠĠĠĠ Ġ` when `( wallet Mapper . map ( network Wallet )). thenReturn ( wallet ) ĊĠĠĠĠĠĠĠ Ġ` when `( transaction List Mapper . map ( network Transactions )). thenReturn ( transactions ) ĊĊĠĠĠĠĠĠĠ Ġval Ġresult Ġ= Ġsut . map ( network Multi Address ) ĊĊĠĠĠĠĠĠĠ ĠassertThat ( result . wallet ). isEqualTo ( wallet ) ĊĠĠĠĠĠĠĠ ĠassertThat ( result . tx s ). isEqualTo ( transactions ) ĊĠĠĠ Ġ} Ċ }