Package org.hibernate.beanvalidation.tck.tests.methodvalidation.model

Examples of org.hibernate.beanvalidation.tck.tests.methodvalidation.model.OrderLine


      @SpecAssertion(section = "5.2", id = "i")
  })
  public void testOneViolationForCascadedValidation() throws Exception {
    String methodName = "setItem";

    Object object = new OrderLine( null );
    Item leaf = new Item( "foo" );
    Method method = OrderLine.class.getMethod( methodName, Item.class );
    Object[] parameterValues = new Object[] { leaf };

    Set<ConstraintViolation<Object>> violations = executableValidator.validateParameters(
View Full Code Here


      @SpecAssertion(section = "5.2", id = "h"),
      @SpecAssertion(section = "5.2", id = "i")
  })
  public void testOneViolationForCascadedValidation() throws Exception {
    Item leaf = new Item( "foo" );
    Object createdObject = new OrderLine( leaf );
    Constructor<OrderLine> constructor = OrderLine.class.getConstructor( Item.class );

    Set<ConstraintViolation<Object>> violations = executableValidator.validateConstructorReturnValue(
        constructor,
        createdObject
View Full Code Here

      @SpecAssertion(section = "5.2", id = "i")
  })
  public void testOneViolationForCascadedValidation() throws Exception {
    String methodName = "setItem";

    Object object = new OrderLine( null );
    Item leaf = new Item( "foo" );
    Method method = OrderLine.class.getMethod( methodName, Item.class );
    Object[] parameterValues = new Object[] { leaf };

    Set<ConstraintViolation<Object>> violations = executableValidator.validateParameters(
View Full Code Here

      @SpecAssertion(section = "5.2", id = "i")
  })
  public void testOneViolationForCascadedValidation() throws Exception {
    String methodName = "getItem";

    Object object = new OrderLine( null );
    Item returnValue = new Item( "foo" );
    Method method = OrderLine.class.getMethod( methodName );

    Set<ConstraintViolation<Object>> violations = executableValidator.validateReturnValue(
        object,
View Full Code Here

TOP

Related Classes of org.hibernate.beanvalidation.tck.tests.methodvalidation.model.OrderLine

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.