Package org.hibernate.beanvalidation.tck.tests.constraints.inheritance.method.invaliddeclarations.model

Examples of org.hibernate.beanvalidation.tck.tests.constraints.inheritance.method.invaliddeclarations.model.Order


  })
  public void testReturnValueIsMarkedAsCascadedInInterfaceAndImplementationCausesException()
      throws Exception {
    Object object = new OrderServiceImplementation();
    Method method = getPlaceOrderMethod( object );
    Object returnValue = new Order();

    executableValidator.validateReturnValue( object, method, returnValue );
    fail( "A method must not mark the return value as cascaded if the implemented interface method is cascaded, too. Expected exception wasn't thrown." );
  }
View Full Code Here


  })
  public void testReturnValueIsMarkedAsCascadedInBaseAndSubClassCausesException()
      throws Exception {
    Object object = new OrderServiceSubClass();
    Method method = getPlaceOrderMethod( object );
    Object returnValue = new Order();

    executableValidator.validateReturnValue( object, method, returnValue );
    fail( "A method must not mark the return value as cascaded if the overridden superclass method is cascaded, too. Expected exception wasn't thrown." );
  }
View Full Code Here

  })
  public void testReturnValueIsMarkedAsCascadedInSuperAndDerivedInterfaceCausesException()
      throws Exception {
    Object object = new ExtendedOrderServiceImplementation();
    Method method = getPlaceOrderMethod( object );
    Object returnValue = new Order();

    executableValidator.validateReturnValue( object, method, returnValue );
    fail( "An interface method must not mark the return value as cascaded if the overridden superinterface method is cascaded, too. Expected exception wasn't thrown." );
  }
View Full Code Here

TOP

Related Classes of org.hibernate.beanvalidation.tck.tests.constraints.inheritance.method.invaliddeclarations.model.Order

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.