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

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


  @Test(expectedExceptions = ValidationException.class)
  @SpecAssertion(section = "5.1.2", id = "j")
  public void testUnexpectedType() throws Exception {
    Constructor<Email> constructor = Email.class.getConstructor();
    Email returnValue = new Email();

    executableValidator.validateConstructorReturnValue( constructor, returnValue );
  }
View Full Code Here


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

    Object object = new Email();
    Method method = Email.class.getMethod( methodName );
    Object returnValue = "S";

    executableValidator.validateReturnValue( object, method, returnValue );
  }
View Full Code Here

TOP

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

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.