package Ġdev . p iment el . domain . use cases Ċ Ċ import Ġdev . p iment el . domain . repositories . Search Terms Repository Ċ import Ġio . mock k . co Every Ċ import Ġio . mock k . co Verify Ċ import Ġio . mock k . confirm Verified Ċ import Ġio . mock k . just Ċ import Ġio . mock k . mock k Ċ import Ġio . mock k . runs Ċ import Ġkotlinx . coroutines . run Blocking Ċ import Ġorg . junit . jupiter . api . BeforeEach Ċ import Ġorg . junit . jupiter . api . Test Ċ Ċ class ĠDelete Search Term Test Ġ{ ĊĊĠĠĠ Ġprivate Ġval Ġsearch Terms Repository Ġ= Ġmock k < Search Terms Repository >() ĊĠĠĠ Ġprivate Ġlateinit Ġvar Ġuse Case : ĠDelete Search Term ĊĊĠĠĠ Ġ@ BeforeEach ĊĠĠĠ Ġfun Ġ` setup Ġsubject `() Ġ{ ĊĠĠĠĠĠĠĠ Ġuse Case Ġ= ĠDelete Search Term ( search Terms Repository ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġ` should Ġdelete Ġsearch Ġterm Ġand Ġthen Ġjust Ġcomplete `() Ġ= Ġrun Blocking Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġterm Ġ= Ġ" term " ĊĊĠĠĠĠĠĠĠ Ġco Every Ġ{ Ġsearch Terms Repository . delete Search Term By Term ( term ) Ġ} Ġjust Ġruns ĊĊĠĠĠĠĠĠĠ Ġuse Case ( Delete Search Term . Params ( term )) ĊĊĠĠĠĠĠĠĠ Ġco Verify ( exact ly Ġ= Ġ 1 ) Ġ{ Ġsearch Terms Repository . delete Search Term By Term ( term ) Ġ} ĊĠĠĠĠĠĠĠ Ġconfirm Verified ( search Terms Repository ) ĊĠĠĠ Ġ} Ċ } Ċ