package Ġcom . github . j actor . web Ċ Ċ import Ġcom . github . j actor . web . controller . About Controller Ċ import Ġcom . github . j actor . web . controller . HomeController Ċ import Ġcom . github . j actor . web . controller . UserController Ċ import Ġorg . assertj . core . api . Assertions . assertThat Ċ import Ġorg . junit . jupiter . api . Test Ċ import Ġorg . springframework . beans . factory . annotation . Autowired Ċ import Ġorg . springframework . boot . test . context . SpringBootTest Ċ Ċ @ SpringBootTest ( classes Ġ= Ġ[ J actor Web :: class ]) Ċ internal Ġclass ĠJ actor Web Test Ġ{ ĊĊĠ Ġ@ Autowired ĊĠ Ġprivate Ġval Ġhome Controller : ĠHome Controller ? Ġ= Ġnull ĊĊĠ Ġ@ Autowired ĊĠ Ġprivate Ġval Ġabout Controller : ĠAbout Controller ? Ġ= Ġnull ĊĊĠ Ġ@ Autowired ĊĠ Ġprivate Ġval Ġuser Controller : ĠUser Controller ? Ġ= Ġnull ĊĊĠ Ġ@ Test ĊĠ Ġfun Ġ` should Ġfetch Ġcontrollers Ġfrom Ġspring Ġcontext `() Ġ{ ĊĠĠĠ ĠassertThat ( home Controller ). ` as ` (" HomeController "). isNotNull ĊĠĠĠ ĠassertThat ( about Controller ). ` as ` (" About Controller "). isNotNull ĊĠĠĠ ĠassertThat ( user Controller ). ` as ` (" UserController "). isNotNull ĊĠ Ġ} Ċ }