Open arnosthavelka opened 4 years ago
Related branch - https://github.com/spring-cloud/spring-cloud-contract/tree/issues_%231292_unused_imports
it's not that easy actually with the current implementation since fromFile(...)
can be passed in any spot. Maybe I'll have to switch to emitting events when some things got called. I'll have to think about it.
FYI it's nice to have feature :-). The unsued imports bothers me in IDE, but they are only in generated tests -> therefore no such a big deal.
I can see unused imports when I open generated test in my IDE:
Sample My integration to contracts is like that:
The test base class is defined as:
The complete example can be found here: https://github.com/arnosthavelka/junit-poc/tree/develop/spring-boot/src/test/resources/contracts/city.