Generating tests for a Spring application that uses @Autowired beans.
Current Result
Tests were generated successfully, but dependencies were not injected, resulting in useless tests (always expecting a NullPointerException).
Expected result
EvoSuite should be able to handle dependency injection as explained in this paper.
Additional info
I've read from the v1.1.0 release that JEE support has been removed. It is unclear to me if this is still the case since v1.2.0.
I tried using v1.0.6 without success, but that is a different issue.
Can the latest release of EvoSuite generate tests handling dependency injection?
Context
Generating tests for a Spring application that uses
@Autowired
beans.Current Result
Tests were generated successfully, but dependencies were not injected, resulting in useless tests (always expecting a
NullPointerException
).Expected result
EvoSuite should be able to handle dependency injection as explained in this paper.
Additional info
I've read from the v1.1.0 release that JEE support has been removed. It is unclear to me if this is still the case since v1.2.0. I tried using v1.0.6 without success, but that is a different issue.
Can the latest release of EvoSuite generate tests handling dependency injection?