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

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


        methodName,
        String.class,
        Item.class,
        int.class
    );
    Object returnValue = new Order( "" );

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


        methodName,
        String.class,
        Item.class,
        int.class
    );
    Object returnValue = new Order( "" );

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

        methodName,
        String.class,
        Item.class,
        int.class
    );
    Object returnValue = new Order( "" );

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

        methodName,
        String.class,
        Item.class,
        Integer.class
    );
    Object returnValue = new Order( "" );

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

        methodName,
        String.class,
        Item.class,
        long.class
    );
    Object returnValue = new Order( "" );

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

        methodName,
        String.class,
        Item.class,
        short.class
    );
    Object returnValue = new Order( "" );

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

        methodName,
        String.class,
        Item.class,
        byte.class
    );
    Object returnValue = new Order( "" );

    Set<ConstraintViolation<Object>> violations = executableValidator.validateReturnValue(
        object,
        method,
        returnValue,
        OrderServiceSequence.class
    );

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

    returnValue = new Order( "BV Specification" );

    violations = executableValidator.validateReturnValue(
        object,
        method,
        returnValue,
View Full Code Here

        methodName,
        String.class,
        Item.class,
        byte.class
    );
    Object returnValue = new Order( "" );

    Set<ConstraintViolation<Object>> violations = executableValidator.validateReturnValue(
        object,
        method,
        returnValue
    );

    //Only the constraints of the Basic group on OrderServiceWithRedefinedDefaultGroupSequence and of
    //the Default group on Order should fail
    assertCorrectConstraintTypes( violations, Size.class, ValidOrder.class );
    assertCorrectPathNodeNames(
        violations,
        names( methodName, TestUtil.RETURN_VALUE_NODE_NAME ),
        names( methodName, TestUtil.RETURN_VALUE_NODE_NAME, "name" )
    );
    assertCorrectPathNodeKinds(
        violations,
        kinds( ElementKind.METHOD, ElementKind.RETURN_VALUE ),
        kinds( ElementKind.METHOD, ElementKind.RETURN_VALUE, ElementKind.PROPERTY )
    );

    returnValue = new Order( "valid" );

    violations = executableValidator.validateReturnValue(
        object,
        method,
        returnValue
View Full Code Here

TOP

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

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.