Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dependency injection problem in tests for Spring application #475

Open
Gabriel-Darbord opened this issue Apr 11, 2024 · 0 comments
Open

Comments

@Gabriel-Darbord
Copy link

Gabriel-Darbord commented Apr 11, 2024

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant