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

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


  @Inject
  private ValidatorFactory defaultValidatorFactory;

  @Deployment
  public static WebArchive createTestArchive() {
    return new WebArchiveBuilder()
        .withTestClassPackage( ConstraintValidatorInjectionTest.class )
        .withEmptyBeansXml()
        .build();
  }
View Full Code Here


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

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

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

  @Deployment
  public static WebArchive createTestArchive() {
    return new WebArchiveBuilder()
        .withTestClass( JndiRetrievalTest.class )
        .withClass( ConstantMessageInterpolator.class )
        .withClass( Foo.class )
        .withValidationXml( "test-validation.xml" )
        .withEmptyBeansXml()
View Full Code Here

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

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

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

  @Deployment
  public static WebArchive createTestArchive() {
    return new WebArchiveBuilder()
        .withTestClassPackage( UnknownMethodValidationTest.class )
        .withValidationXml( "validation-UnknownMethodValidationTest.xml" )
        .withResource( "customer-repository-constraints-UnknownMethodValidationTest.xml" )
        .build();
  }
View Full Code Here

  private Validator validator;
  private ExecutableValidator executableValidator;

  @Deployment
  public static WebArchive createTestArchive() {
    return new WebArchiveBuilder()
        .withTestClassPackage( InvalidConstraintDefinitionsTest.class )
        .build();
  }
View Full Code Here

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

  @Deployment
  public static WebArchive createTestArchive() {
    return new WebArchiveBuilder()
        .withTestClassPackage( ConstructorValidationTest.class )
        .withValidationXml( "validation-ConstructorValidationTest.xml" )
        .withResource( "customer-repository-constraints-ConstructorValidationTest.xml" )
        .build();
  }
View Full Code Here

  private final static String mappingFile2 = "constraints-MessageIsNotAllowedAsElementNameTest.xml";
  private final static String mappingFile3 = "constraints-PayloadIsNotAllowedAsElementNameTest.xml";

  @Deployment
  public static WebArchive createTestArchive() {
    return new WebArchiveBuilder()
        .withTestClass( ReservedElementNameTest.class )
        .withClasses( User.class )
        .withResource( ReservedElementNameTest.mappingFile1 )
        .withResource( ReservedElementNameTest.mappingFile2 )
        .withResource( ReservedElementNameTest.mappingFile3 )
View Full Code Here

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

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

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

  @Deployment
  public static WebArchive createTestArchive() {
    return new WebArchiveBuilder()
        .withTestClass( CascadedValidationTest.class )
        .withClass( Cascaded.class )
        .withValidationXml( "validation-CascadedValidationTest.xml" )
        .withResource( "CascadedValidationTest.xml" )
        .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.