Package org.jboss.cdi.tck.shrinkwrap

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


    @ArquillianResource
    private URL contextPath;

    @Deployment(testable = false)
    public static WebArchive createTestArchive() {
        return new WebArchiveBuilder()
                .withTestClassPackage(RequestContextTest.class)
                .withExcludedClass(TranslatorEndpointService.class.getName())
                .withWebXml(
                        Descriptors.create(WebAppDescriptor.class).createServlet().servletName("Translator")
                                .servletClass("org.jboss.cdi.tck.tests.context.request.ws.TranslatorEndpoint").loadOnStartup(1)
View Full Code Here


    @ArquillianResource
    private URL contextPath;

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

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

    @Deployment
    public static WebArchive createTestArchive() {
        return new WebArchiveBuilder()
                .withTestClass(DataSourcePassivationDependencyTest.class)
                .withClasses(Pool.class, Another.class, DataSourceProducer.class)
                .withWebXml(
                        Descriptors.create(WebAppDescriptor.class).createResourceRef().resRefName("jdbc/TestDB")
                                .resType(DataSource.class.getName()).lookupName(ConfigurationFactory.get().getTestDataSource())
View Full Code Here

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

    @Deployment
    public static WebArchive createTestArchive() {
        return new WebArchiveBuilder().withTestClass(ResourcePassivationDependencyTest.class)
                .withClasses(ResourceProducer.class, Profile.class, Another.class).withDefaultPersistenceXml().build();
    }
View Full Code Here

    @ArquillianResource
    private URL contextPath;

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

public class PassivationCapableBeanWithNonPassivatingInterceptorTest extends AbstractTest {

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

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

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

    @ShouldThrowException(DeploymentException.class)
    @Deployment
    public static WebArchive createTestArchive() {
        // Originally EAR but no enterprise feature used
        return new WebArchiveBuilder().withTestClassPackage(NonPassivationCapableProducerMethodTest.class).build();
    }
View Full Code Here

public class NonPassivatingInjectedFieldTest extends AbstractTest {

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

    @ShouldThrowException(DeploymentException.class)
    @Deployment
    public static WebArchive createTestArchive() {
        // Originally EAR but no enterprise feature used
        return new WebArchiveBuilder().withTestClassPackage(NonPassivationCapableProducerFieldTest.class).build();
    }
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.