Description
There are two variables with name petTypeMock created in Unit tests for Pet
To Reproduce
- Install -IU- UnitTestBot plugin in IntelliJ IDEA
- Open
spring-petclinic
- Generate
Unit tests for Pet with PetClinicApplication / No Configuration
Expected 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
Description
There are two variables with name
petTypeMockcreated in Unit tests forPetTo Reproduce
spring-petclinicUnit testsforPetwithPetClinicApplication/ 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