'Is it possible to mock recursive validations in java bean validation?
In the next class
public class ClassValidate(){
@NotBlank
private String field;
@Valid
private OtherClass other;
}
public class OtherClass(){
@NotBlank
private String otherField;
}
Is there a way to mock OtherClass validations when testing on ClassValidate?
validator.validate(objectClassValidate);
Thanks.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
