Package javax.validation.metadata

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


        CustomerRepositoryExt.class,
        "baz"
    );

    assertConstraintTypes(
        returnValueDescriptor.findConstraints()
            .lookingAt( Scope.LOCAL_ELEMENT )
            .getConstraintDescriptors(), Min.class
    );
    assertConstraintTypes(
        returnValueDescriptor.findConstraints()
View Full Code Here


        returnValueDescriptor.findConstraints()
            .lookingAt( Scope.LOCAL_ELEMENT )
            .getConstraintDescriptors(), Min.class
    );
    assertConstraintTypes(
        returnValueDescriptor.findConstraints()
            .lookingAt( Scope.HIERARCHY )
            .getConstraintDescriptors(), Min.class, NotNull.class
    );
  }
View Full Code Here

    ReturnValueDescriptor returnValueDescriptor = getMethodReturnValueDescriptor(
        CustomerRepositoryExt.class,
        "baz"
    );
    assertConstraintTypes(
        returnValueDescriptor.findConstraints()
            .unorderedAndMatchingGroups( ValidationGroup.class )
            .getConstraintDescriptors(), NotNull.class
    );
  }
View Full Code Here

    assertThat( returnValueDescriptor.getElementClass() ).isSameAs( void.class );
    assertThat( returnValueDescriptor.hasConstraints() ).isFalse();
    assertThat( returnValueDescriptor.isCascaded() ).isFalse();
    assertThat( returnValueDescriptor.getConstraintDescriptors() ).isEmpty();
    assertThat( returnValueDescriptor.getGroupConversions() ).isEmpty();
    assertThat( returnValueDescriptor.findConstraints().getConstraintDescriptors() ).isEmpty();
  }
}
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.