Package org.hibernate.beanvalidation.tck.common

Examples of org.hibernate.beanvalidation.tck.common.TCKValidatorConfiguration


      @SpecAssertion(section = "5.5", id = "a"),
      @SpecAssertion(section = "5.5.3", id = "l"),
      @SpecAssertion(section = "5.5.4.2", id = "a")
  })
  public void testGetFactoryByProviderSpecifiedProgrammatically() {
    TCKValidatorConfiguration configuration = Validation.byProvider( TCKValidationProvider.class ).configure();
    ValidatorFactory factory = configuration.buildValidatorFactory();
    assertNotNull( factory );
    assertTrue( factory instanceof TCKValidationProvider.DummyValidatorFactory );
  }
View Full Code Here


  public void testProviderResolverReturnsListOfAvailableProviders() {

    // really an indirect test since there is no way to get hold of the default provider resolver.
    // we just confirm that the provider under test and the TCKValidationProvider are loadable.

    TCKValidatorConfiguration configuration = Validation.byProvider( TCKValidationProvider.class ).configure();
    ValidatorFactory factory = configuration.buildValidatorFactory();
    assertNotNull( factory );

    @SuppressWarnings("unchecked")
    Configuration<?> config = Validation.byProvider( TestUtil.getValidationProviderUnderTest().getClass() )
        .configure();
View Full Code Here

TOP

Related Classes of org.hibernate.beanvalidation.tck.common.TCKValidatorConfiguration

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.