Package org.jboss.cdi.tck.shrinkwrap

Examples of org.jboss.cdi.tck.shrinkwrap.WebArchiveBuilder


public class AfterBeanDiscoveryFailureTest extends AbstractTest {

    @ShouldThrowException(DeploymentException.class)
    @Deployment
    public static WebArchive createTestArchive() {
        return new WebArchiveBuilder().withTestClassPackage(AfterBeanDiscoveryFailureTest.class)
                .withExtension(BeanDiscoveryObserver.class).build();
    }
View Full Code Here


@SpecVersion(spec = "cdi", version = "20091101")
public class CustomTransactionalObserverTest extends AbstractTest {

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

    private static final Annotation PET_LITERAL = new AnnotationLiteral<Pet>() {
    };

    @Deployment
    public static WebArchive createTestArchive() {
        return new WebArchiveBuilder().withTestClassPackage(DependentContextTest.class).withBeansXml("beans.xml").build();
    }
View Full Code Here

public class BeforeBeanDiscoveryThrowsExceptionTest extends AbstractTest {

    @ShouldThrowException(DefinitionException.class)
    @Deployment
    public static WebArchive createTestArchive() {
        return new WebArchiveBuilder().withTestClassPackage(BeforeBeanDiscoveryThrowsExceptionTest.class)
                .withExtension(BeforeBeanDiscoveryObserver.class).build();
    }
View Full Code Here

public class AddingPassivatingScopeTest extends AbstractTest {

    @ShouldThrowException(DefinitionException.class)
    @Deployment
    public static WebArchive createTestArchive() {
        return new WebArchiveBuilder().withTestClassPackage(AddingPassivatingScopeTest.class)
                .withExtension(BeforeBeanDiscoveryObserver.class).build();
    }
View Full Code Here

@SpecVersion(spec = "cdi", version = "20091101")
public class CheckTypeParametersWhenResolvingObserversTest extends AbstractTest {

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

public class AddDefinitionErrorTest extends AbstractTest {

    @ShouldThrowException(DefinitionException.class)
    @Deployment
    public static WebArchive createTestArchive() {
        return new WebArchiveBuilder().withTestClassPackage(AddDefinitionErrorTest.class)
                .withExtension(BeanDiscoveryObserver.class).build();
    }
View Full Code Here

    @ArquillianResource
    private URL contextPath;

    @Deployment(testable = false)
    public static WebArchive createTestArchive() {
        return new WebArchiveBuilder().withTestClassPackage(RequestContextTest.class)
                .withWebResource("SimplePage.html", "SimplePage.html").build();
    }
View Full Code Here

@SpecVersion(spec = "cdi", version = "20091101")
public class MemberLevelInheritanceTest extends AbstractTest {

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

                .createModule().ejb(EnterpriseArchiveBuilder.DEFAULT_EJB_MODULE_NAME).up().createModule().getOrCreateWeb()
                .webUri("foo.war").contextRoot("/foo").up().up().createModule().getOrCreateWeb().webUri("bar.war")
                .contextRoot("/bar").up().up().exportAsString());
        enterpriseArchive.setApplicationXML(applicationXml);

        WebArchive fooArchive = new WebArchiveBuilder().notTestArchive().withName("foo.war").withClasses(FooWebBean.class)
                .withBeanLibrary("foo.jar", FooExtension.class, FooBean.class).withDefaultEjbModuleDependency().build();
        enterpriseArchive.addAsModule(fooArchive);

        WebArchive barArchive = new WebArchiveBuilder().notTestArchive().withName("bar.war").withClasses(BarWebBean.class)
                .withBeanLibrary("bar.jar", BarExtension.class, BarBean.class).withDefaultEjbModuleDependency().build();
        enterpriseArchive.addAsModule(barArchive);

        return enterpriseArchive;
    }
View Full Code Here

TOP

Related Classes of org.jboss.cdi.tck.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.