I am building a Cucumber/Java project using Spring for dependency injection and am looking for some basic information as to how the Spring container is set up in Cucumber.
I think that new @components are created for each scenario, but is a new Spring container (applicationContext) created, or is one contained created at the start of each Cucumber session?
I have a @Configuration bean in which I use @PropertySource("configuration.properties") to read in the config properties. Is this read in once for the Cucumber session or read in anew for each scenario.
Basically, I'm looking for overview documentation and Spring container lifecycle as it is integrated with Cucumber.
regards,
Michael