Unmodifiable emptyMap is created in Spring Integration tests #2656
Labels
comp-minimizer
Issue is related to Minimization phase
comp-spring
Issue is related to Spring projects support
ctg-bug
Issue is a bug
ctg-question
Further information is requested
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 expectedCan 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 unmodifiable
Screenshots, logs
Environment
IntelliJ IDEA version - Ultimate 2023.2
Project - gradle
JDK - 17
Additional context
Please check the expected behavior
The text was updated successfully, but these errors were encountered: