Examples of WebArchiveBuilder


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

public class EnterpriseBeanWithNonPassivatingDecoratorTest extends AbstractTest {

    @ShouldThrowException(DeploymentException.class)
    @Deployment
    public static WebArchive createTestArchive() {
        return new WebArchiveBuilder()
                .withTestClassPackage(EnterpriseBeanWithNonPassivatingDecoratorTest.class)
                .withBeansXml(
                        Descriptors.create(BeansDescriptor.class).createDecorators()
                                .clazz(MaarianhaminaDecorator.class.getName()).up()).build();
    }
View Full Code Here

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

public class DecoratorWithNonPassivatingInjectedFieldTest extends AbstractTest {

    @ShouldThrowException(DeploymentException.class)
    @Deployment
    public static WebArchive createTestArchive() {
        return new WebArchiveBuilder()
                .withTestClassPackage(DecoratorWithNonPassivatingInjectedFieldTest.class)
                .withBeansXml(
                        Descriptors.create(BeansDescriptor.class).createDecorators().clazz(CityDecorator.class.getName()).up())
                .build();
    }
View Full Code Here

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

public class NonPassivatingInitParamTest extends AbstractTest {

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

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

public class EnterpriseBeanWithNonPassivatingInjectedFieldInDecoratorTest extends AbstractTest {

    @ShouldThrowException(DeploymentException.class)
    @Deployment
    public static WebArchive createTestArchive() {
        return new WebArchiveBuilder()
                .withTestClassPackage(EnterpriseBeanWithNonPassivatingInjectedFieldInDecoratorTest.class)
                .withBeansXml(
                        Descriptors.create(BeansDescriptor.class).createDecorators().clazz(BrokenDecorator.class.getName())
                                .up()).build();
    }
View Full Code Here

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

public class NonPassivatingConstructorParamTest extends AbstractTest {

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

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

public class NonPassivationCapableEjbWithPassivatingScopeTest extends AbstractTest {

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

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

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

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

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

public class UnserializableSimpleInjectedIntoPassivatingEnterpriseBeanTest extends AbstractTest {

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

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

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

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

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

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

        WebArchive fooArchive = new WebArchiveBuilder().notTestArchive().withName("test1.war").withClasses(Observer2.class)
                .withDefaultEjbModuleDependency().build();
        enterpriseArchive.addAsModule(fooArchive);

        WebArchive barArchive = new WebArchiveBuilder().notTestArchive().withName("test2.war").withClasses(Observer3.class)
                .withDefaultEjbModuleDependency().build();
        enterpriseArchive.addAsModule(barArchive);

        return enterpriseArchive;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.