Package org.hibernate.beanvalidation.tck.tests.methodvalidation.model

Examples of org.hibernate.beanvalidation.tck.tests.methodvalidation.model.Address


  @Test(expectedExceptions = ValidationException.class)
  @SpecAssertion(section = "5.1.2", id = "a")
  public void testUnexpectedType() throws Exception {
    String methodName = "setName";

    Object object = new Address();
    Method method = Address.class.getMethod( methodName, String.class );
    Object[] parameterValues = new Object[] { "S" };

    executableValidator.validateParameters( object, method, parameterValues );
  }
View Full Code Here


  @Test(expectedExceptions = ValidationException.class)
  @SpecAssertion(section = "5.1.2", id = "a")
  public void testUnexpectedType() throws Exception {
    String methodName = "setName";

    Object object = new Address();
    Method method = Address.class.getMethod( methodName, String.class );
    Object[] parameterValues = new Object[] { "S" };

    executableValidator.validateParameters( object, method, parameterValues );
  }
View Full Code Here

TOP

Related Classes of org.hibernate.beanvalidation.tck.tests.methodvalidation.model.Address

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.