Examples of OrderServiceWithRedefinedDefaultGroupSequence


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

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

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

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

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

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

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

        .getConstructor(
            String.class,
            Item.class,
            byte.class
        );
    OrderServiceWithRedefinedDefaultGroupSequence returnValue = new OrderServiceWithRedefinedDefaultGroupSequence(
        ""
    );

    Set<ConstraintViolation<OrderServiceWithRedefinedDefaultGroupSequence>> violations = executableValidator
        .validateConstructorReturnValue(
            constructor,
            returnValue
        );

    //Only the constraints of the Basic group should fail
    assertCorrectConstraintTypes( violations, Size.class, ValidOrderService.class );
    assertCorrectPathNodeNames(
        violations,
        names( className, TestUtil.RETURN_VALUE_NODE_NAME ),
        names( className, TestUtil.RETURN_VALUE_NODE_NAME, "name" )
    );
    assertCorrectPathNodeKinds(
        violations,
        kinds( ElementKind.CONSTRUCTOR, ElementKind.RETURN_VALUE ),
        kinds( ElementKind.CONSTRUCTOR, ElementKind.RETURN_VALUE, ElementKind.PROPERTY )
    );

    returnValue = new OrderServiceWithRedefinedDefaultGroupSequence( "valid" );

    violations = executableValidator.validateConstructorReturnValue(
        constructor,
        returnValue
    );
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.