python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
How to unit test methods together with its constraint validators (which some should be mocked out)?
My app has a service layer which is composed by CDI applications scoped beans:
@ApplicationScoped
@Transactional
public class PostService {
@Inject private PostRepository postRepo;
@Inject pri...

cidra
Votes: 0
Answers: 1
handleMethodArgumentNotValid is not being called
Im doing this project on spring boot 2.6.2. The error is that the handleMethodArgumentNotValid is not being called, because on Postman when I put the "nome" as null or exceding its max, inst...

user17154913
Votes: 0
Answers: 1
Can Springfox 3 generate Integer boundaries based on JSR 303 @Min/@Max in OAS3 API docs?
I created a Spring Boot application with a RestController that validates the DTO passed to a POST method based on JSR 303 validation annotations. API docs are generated using Springfox.
Validations ar...
Florian Patzl
Votes: 0
Answers: 1
Not able to inject dependency into ConstraintValidator implementation
I have tried several methods to inject dependency into my ConstraintValidator implementation but nothing is working. I have tried almost all stackoverflow threads. I am using Hibernate Validator to ac...
Malay Pandey
Votes: 0
Answers: 2