Package org.hibernate.beanvalidation.tck.util.shrinkwrap

Examples of org.hibernate.beanvalidation.tck.util.shrinkwrap.WebArchiveBuilder


@SpecVersion(spec = "beanvalidation", version = "1.1.0")
public class ExcludeFieldLevelAnnotationsDueToBeanDefaultsTest extends Arquillian {

  @Deployment
  public static WebArchive createTestArchive() {
    return new WebArchiveBuilder()
        .withTestClass( ExcludeFieldLevelAnnotationsDueToBeanDefaultsTest.class )
        .withClasses( User.class, CreditCard.class )
        .withValidationXml( "validation-ExcludeFieldLevelAnnotationsDueToBeanDefaultsTest.xml" )
        .withResource( "user-constraints-ExcludeFieldLevelAnnotationsDueToBeanDefaultsTest.xml" )
        .build();
View Full Code Here


@SpecVersion(spec = "beanvalidation", version = "1.1.0")
public class ReturnValueDescriptorTest extends Arquillian {

  @Deployment
  public static WebArchive createTestArchive() {
    return new WebArchiveBuilder()
        .withTestClass( ReturnValueDescriptorTest.class )
        .withClasses(
            Account.class,
            Customer.class,
            CustomerService.class,
View Full Code Here

@SpecVersion(spec = "beanvalidation", version = "1.1.0")
public class ValidationTest extends Arquillian {

  @Deployment
  public static WebArchive createTestArchive() {
    return new WebArchiveBuilder()
        .withTestClass( ValidationTest.class )
        .withClasses( TCKValidationProvider.class, TCKValidatorConfiguration.class )
        .build();
  }
View Full Code Here

@SpecVersion(spec = "beanvalidation", version = "1.1.0")
public class MissingMandatoryElementTest extends Arquillian {

  @Deployment
  public static WebArchive createTestArchive() {
    return new WebArchiveBuilder()
        .withTestClass( MissingMandatoryElementTest.class )
        .withClasses( Optional.class, Package.class, PrePosting.class, ValidPackage.class )
        .withValidationXml( "validation-MissingMandatoryElementTest.xml" )
        .withResource( "package-constraints-MissingMandatoryElementTest.xml" )
        .build();
View Full Code Here

  private static final String MAPPING_FILE = "Version11InMappingXmlTest.xml";

  @Deployment
  public static WebArchive createTestArchive() {
    return new WebArchiveBuilder()
        .withTestClass( Version10InMappingXmlTest.class )
        .withClass( TestEntity.class )
        .withResource( MAPPING_FILE )
        .build();
  }
View Full Code Here

@SpecVersion(spec = "beanvalidation", version = "1.1.0")
public class DefaultSequenceDefinedInXmlTest extends Arquillian {

  @Deployment
  public static WebArchive createTestArchive() {
    return new WebArchiveBuilder()
        .withTestClass( DefaultSequenceDefinedInXmlTest.class )
        .withClasses( Optional.class, Package.class, PrePosting.class, ValidPackage.class )
        .withValidationXml( "validation-DefaultSequenceDefinedInXmlTest.xml" )
        .withResource( "package-constraints-DefaultSequenceDefinedInXmlTest.xml" )
        .build();
View Full Code Here

@SpecVersion(spec = "beanvalidation", version = "1.1.0")
public class Version11InValidationXmlTest extends Arquillian {

  @Deployment
  public static WebArchive createTestArchive() {
    return new WebArchiveBuilder()
        .withTestClass( Version11InValidationXmlTest.class )
        .withValidationXml( "validation-Version11InValidationXmlTest.xml" )
        .build();
  }
View Full Code Here

*/
@SpecVersion(spec = "beanvalidation", version = "1.1.0")
public class IgnoreAnnotationsInConstructorConfigurationTest extends Arquillian {
  @Deployment
  public static WebArchive createTestArchive() {
    return new WebArchiveBuilder()
        .withTestClass( IgnoreAnnotationsInConstructorConfigurationTest.class )
        .withClass( IgnoreAnnotations.class )
        .withValidationXml( "validation-IgnoreAnnotationsInConstructorConfigurationTest.xml" )
        .withResource( "ignore-annotations-IgnoreAnnotationsInConstructorConfigurationTest.xml" )
        .build();
View Full Code Here

  public final static String mappingFile2 = "package-constraints-ClassLevelOverridingImplicitOverrideTest.xml";
  public final static String mappingFile3 = "package-constraints-ClassLevelOverridingWithAnnotationTest.xml";

  @Deployment
  public static WebArchive createTestArchive() {
    return new WebArchiveBuilder()
        .withTestClassPackage( ClassLevelOverridingTest.class )
        .withResource( ClassLevelOverridingTest.mappingFile1 )
        .withResource( ClassLevelOverridingTest.mappingFile2 )
        .withResource( ClassLevelOverridingTest.mappingFile3 )
        .build();
View Full Code Here

  private static final String MAPPING_FILE = "UnknownVersionInMappingXmlTest.xml";

  @Deployment
  public static WebArchive createTestArchive() {
    return new WebArchiveBuilder()
        .withTestClass( UnknownVersionInMappingXmlTest.class )
        .withResource( MAPPING_FILE )
        .build();
  }
View Full Code Here

TOP

Related Classes of org.hibernate.beanvalidation.tck.util.shrinkwrap.WebArchiveBuilder

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.