Package jodd.vtor.constraint

Examples of jodd.vtor.constraint.MinLengthConstraint


  @Test
  public void testManualConfig() {

    ValidationContext vctx = new ValidationContext();
    vctx.add(new Check("string", new MinLengthConstraint(2)));

    Vtor vtor = new Vtor();
    vtor.validate(vctx, new Foo());

    assertTrue(vtor.hasViolations());
View Full Code Here


  @Test
  public void testManualAddViolation() {

    ValidationContext vctx = new ValidationContext();
    vctx.add(new Check("string", new MinLengthConstraint(2)));

    Vtor vtor = new Vtor();
    Foo foo = new Foo();
    vtor.validate(vctx, foo);
View Full Code Here

TOP

Related Classes of jodd.vtor.constraint.MinLengthConstraint

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.