Package jodd.vtor.data

Examples of jodd.vtor.data.Woo


public class AnnotationTest {

  @Test
  public void testAnn() {
    Vtor vtor = new Vtor();
    vtor.validate(new Woo());
    List<Violation> v = vtor.getViolations();
    assertEquals(1, v.size());

    vtor.resetViolations();
    vtor.useProfiles("p1", "p2");
    vtor.validate(new Woo());
    v = vtor.getViolations();
    assertEquals(2, v.size());

    vtor.resetViolations();
    vtor.useProfiles("default", "p1", "p2");
    vtor.validate(new Woo());
    v = vtor.getViolations();
    assertEquals(3, v.size());
  }
View Full Code Here

TOP

Related Classes of jodd.vtor.data.Woo

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.