How to register a ContraintValidator with MockMvc?

76 Views Asked by At

I know this was asked before, but that was never really answered satisfactory.

How do you add a ContstraintValidator with MockMvc?

I expected to find something on the StandaloneMockMvcBuilder, as I was able to use it to add an argument resolver, but I don't see anything for it. There is setValidator() but that doesn't support a javax.validation.ContstraintValidator.

0

There are 0 best solutions below