Skip to content

Instantly share code, notes, and snippets.

@mchmielarz
Created December 17, 2018 22:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mchmielarz/7c0fee7192d89765e30bddc0c96c5434 to your computer and use it in GitHub Desktop.
Save mchmielarz/7c0fee7192d89765e30bddc0c96c5434 to your computer and use it in GitHub Desktop.
Running BankAccount validation
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