Package org.hibernate.validator.internal.metadata.aggregated

Examples of org.hibernate.validator.internal.metadata.aggregated.ExecutableMetaData.unwrapMode()


    ValueContext<Object[], Object> cascadingValueContext = ValueContext.getLocalExecutionContext(
        parameterValues,
        executableMetaData.getValidatableParametersMetaData(),
        PathImpl.createPathForExecutable( executableMetaData )
    );
    cascadingValueContext.setUnwrapMode( executableMetaData.unwrapMode() );

    groupIterator = validationOrder.getGroupIterator();
    while ( groupIterator.hasNext() ) {
      Group group = groupIterator.next();
      cascadingValueContext.setCurrentGroup( group.getDefiningClass() );
View Full Code Here


        ExecutableElement.forMethod(
            method
        )
    );

    assertEquals( methodMetaData.unwrapMode(), UnwrapMode.UNWRAP );
  }

  @Test
  public void requiresUnwrappingForConstructor() throws Exception {
    Constructor<CustomerRepositoryExt> constructor = CustomerRepositoryExt.class.getConstructor( long.class );
View Full Code Here

        ExecutableElement.forConstructor(
            constructor
        )
    );

    assertEquals( constructorMetaData.unwrapMode(), UnwrapMode.UNWRAP );
  }

  @Test
  public void methodWithConstrainedParameter() throws Exception {
    Method method = CustomerRepositoryExt.class.getMethod( "createCustomer", CharSequence.class, String.class );
View Full Code Here

    assertFalse( methodMetaData.isCascading() );
    assertFalse( methodMetaData.isConstrained() );
    assertThat( methodMetaData ).isEmpty();
    assertThat( methodMetaData.getCrossParameterConstraints() ).isEmpty();
    assertEquals( methodMetaData.unwrapMode(), UnwrapMode.AUTOMATIC );

    assertThat( methodMetaData.getParameterMetaData( 0 ).isConstrained() ).isFalse();
    assertThat( methodMetaData.getParameterMetaData( 0 ).isCascading() ).isFalse();
    assertThat( methodMetaData.getParameterMetaData( 0 ) ).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.