I would like to bootstrap my Spring application/co...
# spring
m
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
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
decent starting point might just be seeing what spring does under the covers when the annotation is used ¯\_(ツ)_/¯