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

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


  @Default
  private Validator qualifiedDefaultValidator;

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


  @Inject
  private Validator defaultValidator;

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

  private ExecutableValidator executableValidator;

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

  public final static String mappingFile1 = "constraint-definition-ExludeExistingValidatorsTest.xml";
  public final static String mappingFile2 = "constraint-definition-IncludeExistingValidatorsTest.xml";

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

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

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

  @Deployment
  public static WebArchive createTestArchive() {
    return new WebArchiveBuilder()
        .withTestClass( BuiltinConstraintsTest.class )
        .withResource( "builtin-constraints-override.xml" )
        .withClass( InvertedNotNullValidator.class )
        .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 ConfigurationViaXmlAndAnnotationsTest extends Arquillian {

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

  @EJB
  private ValidationTestEjb testEjb;

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

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

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