Created
December 17, 2018 22:17
-
-
Save mchmielarz/7c0fee7192d89765e30bddc0c96c5434 to your computer and use it in GitHub Desktop.
Running BankAccount validation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BankAccount bankAccount = newBankAccount("invalid_iban", "invalid_bic", null); | |
final Set<ConstraintViolation<BankAccount>> constraints = | |
Validation.buildDefaultValidatorFactory().getValidator().validate(bankAccount); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment