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

Examples of org.hibernate.beanvalidation.tck.tests.methodvalidation.service.OrderService


    Constructor<OrderService> constructor = OrderService.class.getConstructor(
        String.class,
        Item.class,
        int.class
    );
    OrderService returnValue = new OrderService( "" );

    Set<ConstraintViolation<OrderService>> violations = executableValidator.validateConstructorReturnValue(
        constructor,
        returnValue
    );
View Full Code Here


    Constructor<OrderService> constructor = OrderService.class.getConstructor(
        String.class,
        Item.class,
        Integer.class
    );
    OrderService returnValue = new OrderService( "" );

    Set<ConstraintViolation<OrderService>> violations = executableValidator.validateConstructorReturnValue(
        constructor,
        returnValue,
        Basic.class
View Full Code Here

    Constructor<OrderService> constructor = OrderService.class.getConstructor(
        String.class,
        Item.class,
        long.class
    );
    OrderService returnValue = new OrderService( "" );

    Set<ConstraintViolation<OrderService>> violations = executableValidator.validateConstructorReturnValue(
        constructor,
        returnValue,
        Basic.class
View Full Code Here

    Constructor<OrderService> constructor = OrderService.class.getConstructor(
        String.class,
        Item.class,
        short.class
    );
    OrderService returnValue = new OrderService( "" );

    Set<ConstraintViolation<OrderService>> violations = executableValidator.validateConstructorReturnValue(
        constructor,
        returnValue,
        Basic.class, Default.class
View Full Code Here

    Constructor<OrderService> constructor = OrderService.class.getConstructor(
        String.class,
        Item.class,
        byte.class
    );
    OrderService returnValue = new OrderService( "" );

    Set<ConstraintViolation<OrderService>> violations = executableValidator.validateConstructorReturnValue(
        constructor,
        returnValue,
        OrderServiceSequence.class
    );

    //Only the constraints of the Basic group should fail
    assertCorrectConstraintTypes( violations, ValidOrderService.class, Size.class );
    assertCorrectPathNodeNames(
        violations,
        names( className, TestUtil.RETURN_VALUE_NODE_NAME ),
        names( className, TestUtil.RETURN_VALUE_NODE_NAME, "name" )
    );
    assertCorrectPathNodeKinds(
        violations,
        kinds( ElementKind.CONSTRUCTOR, ElementKind.RETURN_VALUE ),
        kinds( ElementKind.CONSTRUCTOR, ElementKind.RETURN_VALUE, ElementKind.PROPERTY )
    );

    returnValue = new OrderService( "valid order service" );

    violations = executableValidator.validateConstructorReturnValue(
        constructor,
        returnValue,
        OrderServiceSequence.class
View Full Code Here

TOP

Related Classes of org.hibernate.beanvalidation.tck.tests.methodvalidation.service.OrderService

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.