package Ġn sl . sam . functional . debug mode Ċ Ċ import Ġorg . assertj . core . api . Assertions Ċ import Ġorg . junit . jupiter . api . Disabled Ċ import Ġorg . junit . jupiter . api . Test Ċ import Ġorg . junit . jupiter . api . extension . Extend With Ċ import Ġorg . springframework . beans . factory . annotation . Autowired Ċ import Ġorg . springframework . boot . test . autoconfigure . web . servlet . Auto Configure MockMvc Ċ import Ġorg . springframework . boot . test . context . SpringBootTest Ċ import Ġorg . springframework . context . ApplicationContext Ċ import Ġorg . springframework . context . annotation . Configuration Ċ import Ġorg . springframework . security . config . annotation . web . configuration . Enable Web Security Ċ import Ġorg . springframework . test . context . junit . jupiter . Spring Extension Ċ Ċ @ Extend With ( Spring Extension :: class ) Ċ @ SpringBootTest ( web Environment Ġ= ĠSpring Boot Test . Web Environment . MOCK ) Ċ @ Auto Configure MockMvc ( secure Ġ= Ġfalse ) Ċ class ĠNo Enable Simple Authentication Methods Annotation At All FT Ġ{ ĊĊĠĠĠ Ġ@ Autowired ĊĠĠĠ Ġlateinit Ġvar Ġapplication Context : ĠApplication Context ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġno Bean With Enable Web Security Annotation In ApplicationContext When No Sms Enabled And Auto Configure MockMvc Sets Secure To False () Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġbean Names Ġ= Ġapplication Context . getBean Names For Annotation ( Enable Web Security :: class . java ) ĊĠĠĠĠĠĠĠ ĠAssertions . assertThat ( bean Names ). isEmpty () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Configuration ĊĠĠĠ Ġclass ĠEmpty Configuration Ċ }