package Ġcom . co ach . fl ame . testing . component . base Ċ Ċ import Ġcom . co ach . fl ame . Fl ame Co ach Service Application Ċ import Ġcom . co ach . fl ame . customer . security . Hash Password Ċ import Ġcom . co ach . fl ame . customer . security . Salt Ċ import Ġcom . co ach . fl ame . jpa . entity .* Ċ import Ġcom . co ach . fl ame . jpa . entity . maker .* Ċ import Ġcom . co ach . fl ame . jpa . repository .* Ċ import Ġcom . co ach . fl ame . jpa . repository . cache . Config Cache Ċ import Ġcom . co ach . fl ame . jpa . repository . operations . Co ach Repository Operation Ċ import Ġcom . co ach . fl ame . testing . component . base . mock .* Ċ import Ġcom . google . gson . JsonObject Ċ import Ġcom . nat pr y ce . make ite asy . Make It Easy . an Ċ import Ġcom . nat pr y ce . make ite asy . Maker Ċ import Ġio . mock k . clear All Mocks Ċ import Ġorg . assertj . core . api . Abstract String Assert Ċ import Ġorg . assertj . core . api . Assertions . assertThat Ċ import Ġorg . junit . jupiter . api . After Each Ċ import Ġorg . junit . jupiter . api . BeforeEach Ċ import Ġorg . springframework . beans . factory . annotation . Autowired Ċ import Ġorg . springframework . boot . test . autoconfigure . jdbc . Auto Configure Test Database Ċ import Ġorg . springframework . boot . test . autoconfigure . web . servlet . Auto Configure MockMvc Ċ import Ġorg . springframework . boot . test . context . SpringBootTest Ċ import Ġorg . springframework . test . context . Context Configuration Ċ import Ġorg . springframework . test . context . Test Execution Listeners Ċ import Ġorg . springframework . test . web . servlet . RequestBuilder Ċ Ċ @ SpringBootTest ( ĊĠĠĠ Ġclasses Ġ= Ġ[ Fl ame Co ach Service Application :: class ], ĊĠĠĠ Ġweb Environment Ġ= ĠSpring Boot Test . Web Environment . MOCK Ċ ) Ċ @ Context Configuration ( ĊĠĠĠ Ġclasses Ġ= Ġ[ ĊĠĠĠĠĠĠĠ ĠComponent Test Config :: class , ĊĠĠĠĠĠĠĠ ĠMock Client Repository :: class , ĊĠĠĠĠĠĠĠ ĠMock Co ach Repository :: class , ĊĠĠĠĠĠĠĠ ĠMock Registration Invite Repository :: class , ĊĠĠĠĠĠĠĠ ĠMock Java Mail Sender :: class , ĊĠĠĠĠĠĠĠ ĠMock App ointments Repository :: class ĊĠĠĠ Ġ] Ċ ) Ċ @ Test Execution Listeners ( ĊĠĠĠ Ġvalue Ġ= Ġ[ ĊĠĠĠĠĠĠĠ ĠLoad Request Execution Listener :: class ĊĠĠĠ Ġ], ĊĠĠĠ Ġmerge Mode Ġ= ĠTest Execution Listeners . Merge Mode . MERGE _ WITH _ DEFAULT S Ċ ) Ċ @ Auto Configure Test Database Ċ @ Auto Configure MockMvc Ċ abstract Ġclass ĠBase Component Test Ġ{ ĊĊĠĠĠ Ġvar Ġrequest : ĠRequest Builder ? Ġ= Ġnull ĊĊĠĠĠ Ġ@ Autowired ĊĠĠĠ Ġprotected Ġlateinit Ġvar Ġclient Type Repository Mock : ĠClient Type Repository ĊĊĠĠĠ Ġ@ Deprecated (" Please Ġuse ĠMock Client Repository . kt ") ĊĠĠĠ Ġ@ Autowired ĊĠĠĠ Ġprotected Ġlateinit Ġvar Ġclient Repository Mock : ĠClient Repository ĊĊĠĠĠ Ġ@ Autowired ĊĠĠĠ Ġprotected Ġlateinit Ġvar Ġmock Client Repository : ĠMock Client Repository ĊĊĠĠĠ Ġ@ Autowired ĊĠĠĠ Ġprotected Ġlateinit Ġvar Ġuser Repository Mock : ĠUser Repository ĊĊĠĠĠ Ġ@ Autowired ĊĠĠĠ Ġprotected Ġlateinit Ġvar Ġuser Session Repository Mock : ĠUser Session Repository ĊĊĠĠĠ Ġ@ Autowired ĊĠĠĠ Ġprotected Ġlateinit Ġvar Ġdaily Task Repository Mock : ĠDaily Task Repository ĊĊĠĠĠ Ġ@ Autowired ĊĠĠĠ Ġprotected Ġlateinit Ġvar Ġmock Co ach Repository : ĠMock Co ach Repository ĊĊĠĠĠ Ġ@ Deprecated (" Please Ġuse ĠMock Co ach Repository . kt ") ĊĠĠĠ Ġ@ Autowired ĊĠĠĠ Ġprotected Ġlateinit Ġvar Ġco ach Repository Mock : ĠCo ach Repository ĊĊĠĠĠ Ġ@ Autowired ĊĠĠĠ Ġprotected Ġlateinit Ġvar Ġcountry Config Cache Mock : ĠConfig Cache < Country Config > ĊĊĠĠĠ Ġ@ Autowired ĊĠĠĠ Ġprotected Ġlateinit Ġvar Ġgender Config Cache Mock : ĠConfig Cache < Gender Config > ĊĊĠĠĠ Ġ@ Autowired ĊĠĠĠ Ġprotected Ġlateinit Ġvar Ġmock Registration Invite Repository : ĠMock Registration Invite Repository ĊĊĠĠĠ Ġ@ Autowired ĊĠĠĠ Ġprotected Ġlateinit Ġvar Ġmock App ointments Repository : ĠMock App ointments Repository ĊĊĠĠĠ Ġ@ Autowired ĊĠĠĠ Ġprotected Ġlateinit Ġvar Ġmock Java Mail Sender : ĠMock Java Mail Sender ĊĊĠĠĠ Ġ@ Autowired ĊĠĠĠ Ġprotected Ġlateinit Ġvar Ġco ach Operations Mock : ĠCo ach Repository Operation ĊĊĠĠĠ Ġ@ Autowired ĊĠĠĠ Ġprotected Ġlateinit Ġvar Ġsalt Tool : ĠS alt ĊĊĠĠĠ Ġ@ Autowired ĊĠĠĠ Ġprotected Ġlateinit Ġvar Ġhash Password Tool : ĠHash Password ĊĊĠĠĠ Ġprotected Ġlateinit Ġvar Ġclient Maker : ĠM aker < Client > ĊĠĠĠ Ġprotected Ġlateinit Ġvar Ġco ach Maker : ĠM aker < Co ach > ĊĠĠĠ Ġprotected Ġlateinit Ġvar Ġclient Type Maker : ĠM aker < Client Type > ĊĠĠĠ Ġprotected Ġlateinit Ġvar Ġuser Maker : ĠM aker < User > ĊĠĠĠ Ġprotected Ġlateinit Ġvar Ġuser Session Maker : ĠM aker < User Session > ĊĠĠĠ Ġprotected Ġlateinit Ġvar Ġdaily Task Maker : ĠM aker < Daily Task > ĊĊĠĠĠ Ġ@ After Each ĊĠĠĠ Ġfun Ġclean Up () Ġ{ ĊĠĠĠĠĠĠĠ Ġclear All Mocks () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ BeforeEach ĊĠĠĠ Ġfun Ġsetup () Ġ{ ĊĠĠĠĠĠĠĠ Ġclient Maker Ġ= Ġan ( Client Maker . Client ) ĊĠĠĠĠĠĠĠ Ġco ach Maker Ġ= Ġan ( Co ach Maker . Co ach ) ĊĠĠĠĠĠĠĠ Ġclient Type Maker Ġ= Ġan ( Client Type Maker . Client Type ) ĊĠĠĠĠĠĠĠ Ġuser Maker Ġ= Ġan ( User Maker . User ) ĊĠĠĠĠĠĠĠ Ġuser Session Maker Ġ= Ġan ( User Session Maker . User Session ) ĊĠĠĠĠĠĠĠ Ġdaily Task Maker Ġ= Ġan ( Daily Task Maker . Daily Task ) ĊĠĠĠ Ġ} Ċ } Ċ