Closed alisevych closed 11 months ago
It is a pity that this bug reproduced again. We have tried to fix it at least five times.
The general problem is that we do not have unique identifiers of UtModel
s in the whole test class, just per execution. It causes problems when we need to group all models related to current class variable in Spring. Although we introduced so-called UtmodelWrapper
and managed to fix the problem in 99,9% situations, it is not still advanced.
Hope it is a really seldom situation and users will not face it.
Description
There are two variables with name
petTypeMock
created in Unit tests forPet
To Reproduce
spring-petclinic
Unit tests
forPet
withPetClinicApplication
/ No ConfigurationExpected behavior
No mock for LocalDate is expected. Variables for mocks should be with unique consistent names. Tests should be compiled.
Actual behavior
There is mock for LocalDate. There are two variables with name
petTypeMock
. Tests are not compiling.Screenshots, logs
Environment
IntelliJ IDEA version - Community 2023.2 Project - Maven JDK - 17