Package javax.validation.metadata

Examples of javax.validation.metadata.ParameterDescriptor.findConstraints()


        "createCustomer",
        CharSequence.class,
        String.class
    ).getParameterDescriptors().get( 1 );

    Set<ConstraintDescriptor<?>> constraintDescriptors = parameterDescriptor.findConstraints()
        .lookingAt( Scope.LOCAL_ELEMENT )
        .getConstraintDescriptors();
    assertEquals( constraintDescriptors.size(), 0 );

    constraintDescriptors = parameterDescriptor.findConstraints()
View Full Code Here


    Set<ConstraintDescriptor<?>> constraintDescriptors = parameterDescriptor.findConstraints()
        .lookingAt( Scope.LOCAL_ELEMENT )
        .getConstraintDescriptors();
    assertEquals( constraintDescriptors.size(), 0 );

    constraintDescriptors = parameterDescriptor.findConstraints()
        .lookingAt( Scope.HIERARCHY )
        .getConstraintDescriptors();
    assertEquals( constraintDescriptors.size(), 1 );
    assertEquals(
        constraintDescriptors.iterator().next().getAnnotation().annotationType(),
View Full Code Here

        new Class<?>[] { CharSequence.class, String.class },
        1
    );

    constraintDescriptors =
        createCustomerParameter2OnBaseType.findConstraints()
            .lookingAt( Scope.LOCAL_ELEMENT )
            .getConstraintDescriptors();

    assertEquals(
        constraintDescriptors.size(),
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.