Package org.hibernate.beanvalidation.tck.tests.constraints.inheritance.method.invaliddeclarations.service.impl

Examples of org.hibernate.beanvalidation.tck.tests.constraints.inheritance.method.invaliddeclarations.service.impl.ImplementationOfConstrainedInterfaceExtendingUnconstrainedSuperClass


      @SpecAssertion(section = "4.5.5", id = "b"),
      @SpecAssertion(section = "4.5.5", id = "e")
  })
  public void testParameterIsConstrainedInInterfaceMethodAndSuperClassMethodCausesException()
      throws Exception {
    Object object = new ImplementationOfConstrainedInterfaceExtendingUnconstrainedSuperClass();
    Method method = getCreateEventMethod( object );
    Object[] parameterValues = new Object[3];

    executableValidator.validateParameters( object, method, parameterValues );
    fail( "A method defined in an interface and a superclass not implementing this interface must have no parameter constraints. Expected exception wasn't thrown." );
View Full Code Here

TOP

Related Classes of org.hibernate.beanvalidation.tck.tests.constraints.inheritance.method.invaliddeclarations.service.impl.ImplementationOfConstrainedInterfaceExtendingUnconstrainedSuperClass

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.