Class ConstraintViolationUtil

java.lang.Object
com.totvs.tjf.test.support.util.ConstraintViolationUtil

public final class ConstraintViolationUtil extends Object
LocalValidatorFactoryBean willing to provide Validators instances to the unit testing scope.
  • Method Summary

    Modifier and Type
    Method
    Description
    static javax.validation.Validator
    Returns an initialized Validator instance using the LocalValidatorFactoryBean defaults for message interpolator, traversable resolver and constraint validator factory.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • getValidator

      public static javax.validation.Validator getValidator()
      Returns an initialized Validator instance using the LocalValidatorFactoryBean defaults for message interpolator, traversable resolver and constraint validator factory. Note: The message source bundle utilized for the validator consists in:
      • basename: classpath:i18n/validation/messages
      • encoding: UTF-8
      Returns:
      an initialized Validator instance.