Package org.jboss.cdi.tck.shrinkwrap

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


@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


public class ManagedBeanWithNonSerializableInterceptorClassTest extends AbstractTest {

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

public class EnterpriseBeanWithNonPassivatingInterceptorTest extends AbstractTest {

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

public class EnterpriseBeanWithNonPassivatingInjectedFieldInInterceptorTest extends AbstractTest {

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

public class NonPassivationManagedBeanHasPassivatingScopeTest extends AbstractTest {

    @ShouldThrowException(DeploymentException.class)
    @Deployment
    public static WebArchive createTestArchive() {
        return new WebArchiveBuilder().withTestClassPackage(NonPassivationManagedBeanHasPassivatingScopeTest.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(ManagedBeanWithNonPassivatingDecoratorTest.class)
                .withBeansXml(
                        Descriptors.create(BeansDescriptor.class).createDecorators()
                                .clazz(MaarianhaminaDecorator.class.getName()).up()).build();
    }
View Full Code Here

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

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

public class NonPassivatingInitParamTest extends AbstractTest {

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

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

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.