Package org.hibernate.jsr303.tck.common

Examples of org.hibernate.jsr303.tck.common.TCKValidatorConfiguration.buildValidatorFactory()


      @SpecAssertion(section = "4.4", id = "a"),
      @SpecAssertion(section = "4.4.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 );
  }

  @Test
View Full Code Here


    // 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 );

    Configuration<?> config = Validation.byProvider( TestUtil.getValidationProviderUnderTest().getClass() )
        .configure();
    factory = config.buildValidatorFactory();
View Full Code Here

      @SpecAssertion(section = "4.4", id = "a"),
      @SpecAssertion(section = "4.4.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 );
  }

  @Test
View Full Code Here

    // 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 );

    Configuration<?> config = Validation.byProvider( TestUtil.getValidationProviderUnderTest().getClass() )
        .configure();
    factory = config.buildValidatorFactory();
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.