package Ġru . ot us . ot us kotlin . resume . repo Ċ Ċ import Ġkotlinx . coroutines . run Blocking Ċ import Ġorg . junit . Test Ċ import Ġru . ot us . ot us kotlin . resume . backend . common . models . Common Error Model Ċ import Ġru . ot us . ot us kotlin . resume . backend . common . models . Resume Id Model Ċ import Ġru . ot us . ot us kotlin . resume . backend . common . models . Resume Model Ċ import Ġru . ot us . ot us kotlin . resume . backend . repo . common . Db Resume Id Request Ċ import Ġru . ot us . ot us kotlin . resume . backend . repo . common . I Repo Resume Ċ import Ġjava . util .* Ċ import Ġkotlin . test . assertEquals Ċ Ċ abstract Ġclass ĠRepo Resume Delete Test Ġ{ ĊĠĠĠ Ġabstract Ġval Ġrepo : ĠI Repo Resume ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġdelete Success () Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġresult Ġ= Ġrun Blocking Ġ{ Ġrepo . delete ( Db Resume Id Request ( delete Obj )) Ġ} ĊĊĠĠĠĠĠĠĠ ĠassertEquals ( true , Ġresult . is Success ) ĊĠĠĠĠĠĠĠ ĠassertEquals ( delete Success Stub , Ġresult . result ) ĊĠĠĠĠĠĠĠ ĠassertEquals ( emptyList (), Ġresult . errors ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġdelete NotFound () Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġresult Ġ= Ġrun Blocking Ġ{ Ġrepo . delete ( Db Resume Id Request ( delete Obj NotFound )) Ġ} ĊĊĠĠĠĠĠĠĠ ĠassertEquals ( false , Ġresult . is Success ) ĊĠĠĠĠĠĠĠ ĠassertEquals ( null , Ġresult . result ) ĊĠĠĠĠĠĠĠ ĠassertEquals ( listOf ( Common Error Model ( field Ġ= Ġ" id ", Ġmessage Ġ= Ġ" Not ĠFound ")), Ġresult . errors ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġcompanion Ġobject : ĠBase Init Resume () Ġ{ ĊĠĠĠĠĠĠĠ Ġoverride Ġval Ġinit Objects : ĠList < Resume Model > Ġ= ĠlistOf ( ĊĠĠĠĠĠĠĠĠĠĠĠ Ġcreate Init Test Model (" delete ") ĊĠĠĠĠĠĠĠ Ġ) ĊĊĠĠĠĠĠĠĠ Ġprivate Ġval Ġdelete Success Stub Ġ= Ġinit Objects . first () ĊĠĠĠĠĠĠĠ Ġval Ġdelete Obj Ġ= Ġdelete Success Stub . id ĊĠĠĠĠĠĠĠ Ġval Ġdelete Obj NotFound Ġ= ĠResume Id Model ( UUID . randomUUID ()) ĊĠĠĠ Ġ} Ċ }