Invalid entity is generated and then searched with Controller #2533
Labels
comp-spring
Issue is related to Spring projects support
ctg-bug
Issue is a bug
spec-ux
Issue is influencing user experience
Milestone
Description
Invalid entity is generated and then searched with Controller
To Reproduce
spring-petclinic
Integration tests
forOwnerController$findOwner
withPetClinicApplication
configuration selectedExpected behavior
Valid entity is expected to be created and saved in to OwnerRepository.
Id should be saved and then used in
findOwner
method call.Some invalid id should be used in another test.
Actual behavior
Owner object is tried to be saved with
entityManager.persist()
But it is not valid and
ConstraintViolationException
is thrown.then
findOwner
method is called with id=-65
Screenshots, logs
Environment
IntelliJ IDEA version - Ultimate 2023.2
Project - Gradle
JDK - 17
The text was updated successfully, but these errors were encountered: