package Ġorg . k ent unc . bit tr ader . c andle . feed er . infrastructure . repository Ċ Ċ import Ġcom . nin jas quad . spring mock k . Mock k Bean Ċ import Ġio . mock k . co Verify Ċ import Ġkotlinx . coroutines . run Blocking Ċ import Ġorg . junit . jupiter . api . Test Ċ import Ġorg . k ent unc . bit tr ader . common . infrastructure . web client . http . c andle . C andle ApiClient Ċ import Ġorg . k ent unc . bit tr ader . common . test . model . Test Ticker Ċ import Ġorg . springframework . beans . factory . annotation . Autowired Ċ import Ġorg . springframework . test . context . junit . jupiter . Spring JUnit Config Ċ Ċ @ Spring JUnit Config ( C andle Repository Impl :: class ) Ċ internal Ġclass ĠC andle Repository Impl Test Ġ{ ĊĊĠĠĠ Ġ@ Mock k Bean ( relax ed Ġ= Ġtrue ) ĊĠĠĠ Ġprivate Ġlateinit Ġvar Ġc andle ApiClient : ĠC andle ApiClient ĊĊĠĠĠ Ġ@ Autowired ĊĠĠĠ Ġprivate Ġlateinit Ġvar Ġtarget : ĠC andle Repository Impl ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġtest Feed () Ġ= Ġrun Blocking Ġ{ ĊĠĠĠĠĠĠĠ Ġ// Ġexercise : ĊĠĠĠĠĠĠĠ Ġtarget . feed ( Test Ticker . create ()) ĊĊĠĠĠĠĠĠĠ Ġ// Ġverify : ĊĠĠĠĠĠĠĠ Ġco Verify Ġ{ Ġc andle ApiClient . feed ( any ()) Ġ} ĊĠĠĠ Ġ} Ċ } Ċ