Open alisevych opened 1 year ago
I reproduced it and got 2 sets. In one of them evaluating this.owners.findById(ownerId)
line of the method under caused new entity to be crated, while in the other one existing entity with ownerId
was found in the database. Because of that difference in execution trace minimization kept both tests.
If needed minimization can be modified to ignore entity creation related coverage.
Description
Unmodifiable emptyMap is created in several Spring Integration tests
To Reproduce
spring-petclinic
Integration tests
forVisitController
withPetClinicApplication
Expected behavior
Only one test on
UnsupportedOperationException
thrown fromAbstractMap.put
is expected Can modifiable Map be passed as a parameter in more than one test?Actual behavior
There are too many tests falling on
UnsupportedOperationException
. model is modified inside the method under test Collections.emptyMap() is created - and it's unmodifiableScreenshots, logs
Environment
IntelliJ IDEA version - Ultimate 2023.2 Project - gradle JDK - 17
Additional context
Please check the expected behavior