Package javax.validation.Path

Examples of javax.validation.Path.MethodNode


    Iterator<Node> propertyPath = violations.iterator()
        .next()
        .getPropertyPath()
        .iterator();

    MethodNode methodNode = propertyPath.next().as( MethodNode.class );
    assertEquals( "drive", methodNode.getName() );
    assertEquals( Arrays.<Class<?>>asList( int.class ), methodNode.getParameterTypes() );

    ParameterNode parameterNode = propertyPath.next().as( ParameterNode.class );
    assertEquals( "arg0", parameterNode.getName() );
    assertEquals( 0, parameterNode.getParameterIndex() );
  }
View Full Code Here

TOP

Related Classes of javax.validation.Path.MethodNode

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.