Package org.hibernate.jsr303.tck.util

Examples of org.hibernate.jsr303.tck.util.StandaloneContainersImpl$IgnoringValidationXmlClassLoader


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

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


  @SpecAssertions({
      @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 );
  }
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 );

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

/**
* Tck Tests for the {@code constraints customconstraint} package.
*/
public class CustomConstraintGwtSuite {
  public static Test suite() {
    TckTestSuiteWrapper suite = new TckTestSuiteWrapper(
        "TCK for GWT Validation, constraints customconstraint package");
    suite.addTestSuite(CustomConstraintValidatorGwtTest.class);
    suite.addTestSuite(CustomConstraintValidatorCompileTest.class);
    return suite;
  }
View Full Code Here

/**
* Tck Tests for the {@code messageinterpolation} package.
*/
public class MessageInterpolationGwtSuite {
  public static Test suite() {
    TckTestSuiteWrapper suite = new TckTestSuiteWrapper(
        "TCK for GWT Validation, messageinterpolation package");
    suite.addTestSuite(MessageInterpolationGwtTest.class);
    suite.addTestSuite(MessageInterpolation_de_GwtTest.class);
    return suite;
  }
View Full Code Here

/**
* Tck Tests for the {@code bootstrap} package.
*/
public class BootstrapGwtSuite {
  public static Test suite() {
    TckTestSuiteWrapper suite = new TckTestSuiteWrapper(
        "TCK for GWT Validation, constraints bootstrap package");
    suite.addTestSuite(ConfigurationGwtTest.class);
    suite.addTestSuite(CustomMessageInterpolatorGwtTest.class);
    suite.addTestSuite(ValidationProviderGwtTest.class);
    suite.addTestSuite(ValidationProviderResolverGwtTest.class);
    suite
        .addTestSuite(BootstrapCustomProviderDefinedInServiceFileGwtTest.class);
    suite
        .addTestSuite(BootstrapCustomProviderDefinedInValidationXmlGwtTest.class);
    suite.addTestSuite(BootstrapUnknownCustomProviderGwtTest.class);
    return suite;
  }
View Full Code Here

/**
* Tck Tests for the {@code xml configuration constraint declaration} package.
*/
public class XmlConstraintDeclarationGwtSuite {
  public static Test suite() {
    TckTestSuiteWrapper suite = new TckTestSuiteWrapper(
        "TCK for GWT Validation, xml configuration constraint declaration package");
    suite.addTestSuite(ConfigurationViaXmlAndAnnotationsGwtTest.class);
    suite.addTestSuite(ConfiguredBeanNotInClassPathGwtTest.class);
    suite.addTestSuite(ConstraintDeclarationGwtTest.class);
    suite.addTestSuite(DefaultSequenceDefinedInXmlGwtTest.class);
    suite.addTestSuite(MandatoryNameAttributeGwtTest.class);
    suite.addTestSuite(MissingMandatoryElementGwtTest.class);
    suite.addTestSuite(ReservedElementNameGwtTest.class);

    // Class level
    suite.addTestSuite(ClassLevelOverridingGwtTest.class);

    // Field Level
    suite
        .addTestSuite(ExcludeFieldLevelAnnotationsDueToBeanDefaultsGwtTest.class);
    suite.addTestSuite(FieldLevelOverridingGwtTest.class);
    suite
        .addTestSuite(IncludeFieldLevelAnnotationsDueToBeanDefaultsGwtTest.class);
    suite.addTestSuite(WrongFieldNameGwtTest.class);

    // Property Level
    suite
        .addTestSuite(ExcludePropertyLevelAnnotationsDueToBeanDefaultsGwtTest.class);
    suite
        .addTestSuite(IncludePropertyLevelAnnotationsDueToBeanDefaultsGwtTest.class);
    suite.addTestSuite(PropertyLevelOverridingGwtTest.class);
    suite.addTestSuite(WrongPropertyNameGwtTest.class);

    return suite;
  }
View Full Code Here

/**
* Tck Tests for Group Sequence Isolation.
*/
public class GroupSequenceIsolationGwtSuite {
  public static Test suite() {
    TckTestSuiteWrapper suite = new TckTestSuiteWrapper(
        "TCK for GWT Validation: Group Sequence Isolation tests.");
    suite.addTestSuite(GroupSequenceIsolationGwtTest.class);
    return suite;
  }
View Full Code Here

/**
* Tck Tests for the {@code constraints composition} package.
*/
public class ConstraintCompositionGwtSuite {
  public static Test suite() {
    TckTestSuiteWrapper suite = new TckTestSuiteWrapper(
        "TCK for GWT Validation, constraints composition package");
    suite.addTestSuite(ConstraintCompositionCompileTest.class);
    suite.addTestSuite(ConstraintCompositionGwtTest.class);
    return suite;
  }
View Full Code Here

/**
* Tck Tests for the group inheritance.
*/
public class GroupInheritanceGwtSuite {
  public static Test suite() {
    TckTestSuiteWrapper suite = new TckTestSuiteWrapper(
        "TCK for GWT Validation, group inheritance");
    suite.addTestSuite(GroupInheritanceGwtTest.class);
    return suite;
  }
View Full Code Here

TOP

Related Classes of org.hibernate.jsr303.tck.util.StandaloneContainersImpl$IgnoringValidationXmlClassLoader

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.