I would like to bootstrap my Spring application/context in tests programatically (not via SprintTest JUnit annotation) - any idea how to do that? Googling is failing me 🙂 Any pointers would be appreciated.
t
thanksforallthefish
06/28/2020, 4:50 AM
testcontainers is an option. I did not try yet, though I am using testcontainers to start my db during tests. but why not sticking with
@SpringBootTest
?
f
fitzoh
06/29/2020, 2:21 AM
decent starting point might just be seeing what spring does under the covers when the annotation is used ¯\_(ツ)_/¯