Examples of ExecutableValidator


Examples of javax.validation.executable.ExecutableValidator

    assertCorrectConstraintTypes( constraintViolations, Min.class );
  }

  @Test
  public void testOptionalUnwrappedCascadableExecutableReturnValue() throws Exception {
    ExecutableValidator executableValidator = validator.forExecutables();
    Method method = Qux.class.getMethod( "getBar" );
    Set<ConstraintViolation<Qux>> constraintViolations = executableValidator.validateReturnValue(
        new Qux(),
        method,
        Optional.of( new Bar() )
    );
    assertNumberOfViolations( constraintViolations, 1 );
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.