Package org.hibernate.validator.test.internal.engine.valuehandling.model

Examples of org.hibernate.validator.test.internal.engine.valuehandling.model.OrderLine


    Validator validator = configuration.addMapping( mapping )
        .addValidatedValueHandler( new PropertyValueUnwrapper() )
        .buildValidatorFactory()
        .getValidator();

    Set<ConstraintViolation<OrderLine>> violations = validator.validate( new OrderLine() );
    assertEquals( violations.size(), 1 );
  }
View Full Code Here


    Validator validator = configuration.addMapping( mapping )
        .addValidatedValueHandler( new PropertyValueUnwrapper() )
        .buildValidatorFactory()
        .getValidator();

    validator.validate( new OrderLine() );
  }
View Full Code Here

    Validator validator = configuration.addMapping( mapping )
        .addValidatedValueHandler( new PropertyValueUnwrapper() )
        .buildValidatorFactory()
        .getValidator();

    OrderLine orderLine = new OrderLine();
    Method method = OrderLine.class.getMethod( "setId", Property.class );
    Object[] parameterValues = new Object[] { new Property<Long>( 0L ) };

    Set<ConstraintViolation<OrderLine>> violations = validator.forExecutables()
        .validateParameters( orderLine, method, parameterValues );
View Full Code Here

    Validator validator = configuration.addMapping( mapping )
        .addValidatedValueHandler( new PropertyValueUnwrapper() )
        .buildValidatorFactory()
        .getValidator();

    OrderLine orderLine = new OrderLine();
    Method method = OrderLine.class.getMethod( "getId" );
    Object returnValue = new Property<Long>( 0L );

    Set<ConstraintViolation<OrderLine>> violations = validator.forExecutables()
        .validateReturnValue( orderLine, method, returnValue );
View Full Code Here

TOP

Related Classes of org.hibernate.validator.test.internal.engine.valuehandling.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.