Package jodd.vtor.data

Examples of jodd.vtor.data.Foo


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

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

    assertTrue(vtor.hasViolations());
    List<Violation> vlist = vtor.getViolations();
    assertFalse(vlist.isEmpty());
    assertEquals(1, vlist.size());
View Full Code Here


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

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

    vtor.addViolation(new Violation("number", foo, null));

View Full Code Here

TOP

Related Classes of jodd.vtor.data.Foo

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.