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

Examples of org.hibernate.beanvalidation.tck.tests.methodvalidation.service.ExtendedOrderService


  @Test
  @SpecAssertion(section = "4.6.2", id = "a")
  public void methodParameterValidationIncludesConstraintsFromSuperClass() throws Exception {
    String methodName = "placeOrder";

    Object object = new ExtendedOrderService();
    Method method = ExtendedOrderService.class.getMethod(
        methodName,
        String.class,
        Item.class,
        int.class
View Full Code Here


  @Test
  @SpecAssertion(section = "4.6.2", id = "c")
  public void methodReturnValueValidationIncludesConstraintsFromSuperClass() throws Exception {
    String methodName = "placeOrder";

    Object object = new ExtendedOrderService();
    Method method = ExtendedOrderService.class.getMethod(
        methodName,
        String.class,
        Item.class,
        int.class
View Full Code Here

    Constructor<ExtendedOrderService> constructor = ExtendedOrderService.class.getConstructor(
        String.class,
        Item.class,
        int.class
    );
    ExtendedOrderService returnValue = new ExtendedOrderService();

    Set<ConstraintViolation<ExtendedOrderService>> violations = executableValidator.validateConstructorReturnValue(
        constructor,
        returnValue
    );
View Full Code Here

TOP

Related Classes of org.hibernate.beanvalidation.tck.tests.methodvalidation.service.ExtendedOrderService

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.