Package org.hibernate.validator.test.internal.engine.methodvalidation.service

Examples of org.hibernate.validator.test.internal.engine.methodvalidation.service.CustomerRepositoryImpl


  protected abstract String messagePrefix();

  protected void createProxy(Class<?>... groups) {
    customerRepository = getValidatingProxy(
        new CustomerRepositoryImpl(), validator, groups
    );
    repositoryBase = customerRepository;
  }
View Full Code Here


  protected ExecutableValidator validator;

  @BeforeClass
  public void setUp() {
    validator = ValidatorUtil.getValidator().forExecutables();
    customerRepository = new CustomerRepositoryImpl();
  }
View Full Code Here

    assertNodeNames( path, "CustomerRepositoryImpl", "arg0", "name" );
  }

  @Test
  public void constructorReturnValueValidationYieldsConstraintViolation() throws Exception {
    CustomerRepositoryImpl customerRepository = new CustomerRepositoryImpl();
    Set<ConstraintViolation<CustomerRepositoryImpl>> violations = executableValidator.validateConstructorReturnValue(
        CustomerRepositoryImpl.class.getConstructor(),
        customerRepository
    );
View Full Code Here

    assertNodeNames( constraintViolation.getPropertyPath(), "CustomerRepositoryImpl", "<return value>" );
  }

  @Test
  public void cascadedConstructorReturnValueValidationYieldsConstraintViolation() throws Exception {
    CustomerRepositoryImpl customerRepository = new CustomerRepositoryImpl();
    Set<ConstraintViolation<CustomerRepositoryImpl>> violations = executableValidator.validateConstructorReturnValue(
        CustomerRepositoryImpl.class.getConstructor( String.class ),
        customerRepository
    );
View Full Code Here

TOP

Related Classes of org.hibernate.validator.test.internal.engine.methodvalidation.service.CustomerRepositoryImpl

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.