package Ġn sl . sam . functional . multi annotation Ċ Ċ import Ġn sl . sam . core . annotation . Enable Simple Authentication Methods Ċ import Ġorg . assertj . core . api . Assertions . assertThat Ċ 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 . test . context . junit . jupiter . Spring Extension Ċ import Ġorg . springframework . util . Class Utils Ċ Ċ @ Extend With ( Spring Extension :: class ) Ċ @ SpringBootTest ( web Environment Ġ= ĠSpring Boot Test . Web Environment . MOCK ) Ċ @ Auto Configure MockMvc Ċ class ĠMulti Enabled Annotation FT Ġ{ ĊĊĠĠĠ Ġ@ Autowired ĊĠĠĠ Ġlateinit Ġvar Ġapplication Context : ĠApplication Context ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġtwo Beans Annotated With Enable Simple Authentication Methods () Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġbean Types Ġ= Ġapplication Context . getBean Names For Annotation ( ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠEnable Simple Authentication Methods :: class . java ). map Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ ĠClass Utils . getUser Class ( application Context . getType ( it !! ) !! ) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠ ĠassertThat ( bean Types ). contains Exactly In Any Order ( ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠFirst En abling Configuration :: class . java , ĠSecond En abling Configuration :: class . java ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Configuration ĊĠĠĠ Ġ@ Enable Simple Authentication Methods ( debug Ġ= Ġfalse , Ġorder Ġ= Ġ 1 0 ) ĊĠĠĠ Ġclass ĠFirst En abling Configuration ĊĊĠĠĠ Ġ@ Configuration ĊĠĠĠ Ġ@ Enable Simple Authentication Methods ( debug Ġ= Ġtrue , Ġorder Ġ= Ġ 2 0 ) ĊĠĠĠ Ġclass ĠSecond En abling Configuration Ċ }