package Ġcom . r 3 . ref app . it . reports Ċ Ċ import Ġcom . r 3 . ref app . flows . Deposit Fi at Flow Ċ import Ġcom . r 3 . ref app . flows . reports . Get Transaction ById Flow Ċ import Ġcom . r 3 . ref app . schemas . Transaction Type Ċ import Ġcom . r 3 . ref app . util . EUR Ċ import Ġcom . r 3 . ref app . util . of Ċ import Ġcom . r 3 . ref app . test . utils . Abstract IT Helper Ċ import Ġcom . r 3 . ref app . test . utils . TestUtils . execute Flow With Run Network Ċ import Ġcom . r 3 . ref app . test . utils . TestUtils . prepare Current Account Ċ import Ġorg . junit . Assert Ċ import Ġorg . junit . jupiter . api . Test Ċ import Ġjava . util . concurrent . ExecutionException Ċ import Ġkotlin . test . assertEquals Ċ import Ġkotlin . test . assert Fails With Ċ import Ġkotlin . test . assertNull Ċ Ċ class ĠGet Transaction ById Flow Test Ġ: ĠAbstract IT Helper () Ġ{ ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġ` test ĠGet Transaction ById Flow Ġhappy Ġpath Ġ` () Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġaccount Ġ= Ġprepare Current Account (" Party A Ġ- ĠCustomer 1 ", Ġbank , Ġnetwork , Ġattachments ) ĊĠĠĠĠĠĠĠ Ġval Ġtx Ġ= Ġexecute Flow With Run Network ( Deposit Fi at Flow ( account . account Data . accountId , Ġ 5 0 Ġof ĠEUR ), Ġbank , Ġnetwork ) ĊĠĠĠĠĠĠĠ Ġval Ġtransaction Log Ġ= Ġexecute Flow With Run Network ( Get Transaction ById Flow ( tx . tx . id . toString ()), Ġbank , Ġnetwork ) ĊĊĠĠĠĠĠĠĠ ĠassertEquals ( tx . tx . id . toString (), Ġtransaction Log . tx Id ) ĊĠĠĠĠĠĠĠ ĠassertNull ( transaction Log . account From ) ĊĠĠĠĠĠĠĠ ĠassertEquals ( account . account Data . accountId , Ġtransaction Log . account To ) ĊĠĠĠĠĠĠĠ ĠassertEquals ( 5 0 0 0 L , Ġtransaction Log . amount ) ĊĠĠĠĠĠĠĠ ĠassertEquals ( EUR . currency Code , Ġtransaction Log . currency ) ĊĠĠĠĠĠĠĠ ĠassertEquals ( Transaction Type . DE POSIT , Ġtransaction Log . tx Type ) ĊĠĠĠ Ġ} ĊĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġ` test ĠGet Transaction ById Flow Ġfails Ġwith Ġtransaction Ġlog Ġcannot Ġbe Ġfound `() Ġ{ ĊĊĠĠĠĠĠĠĠ Ġval Ġmessage Ġ= Ġassert Fails With < ExecutionException > Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġexecute Flow With Run Network ( Get Transaction ById Flow (" fake _ id "), Ġbank , Ġnetwork ) ĊĠĠĠĠĠĠĠ Ġ}. message !! ĊĊĠĠĠĠĠĠĠ ĠAssert . assertEquals (" java . lang . IllegalArgumentException : ĠTransactions Ġwith Ġid Ġfake _ id Ġdoes Ġnot Ġexist ", Ġmessage ) ĊĠĠĠ Ġ} Ċ }