Package org.jboss.cdi.tck.shrinkwrap

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


public class RawInstanceDisposerInjectionTest extends AbstractTest {

    @ShouldThrowException(DefinitionException.class)
    @Deployment
    public static WebArchive createTestArchive() {
        return new WebArchiveBuilder().withTestClass(RawInstanceDisposerInjectionTest.class)
                .withClasses(Foo.class, ProducerMethodInjectionBar.class).build();
    }
View Full Code Here


    private static final AnnotationLiteral<FarmBased> farmBasedLiteral = new AnnotationLiteral<FarmBased>() {
    };

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

public class RawInstanceConstructorInjectionTest extends AbstractTest {

    @ShouldThrowException(DefinitionException.class)
    @Deployment
    public static WebArchive createTestArchive() {
        return new WebArchiveBuilder().withTestClass(RawInstanceConstructorInjectionTest.class)
                .withClasses(Foo.class, ConstructorInjectionBar.class).build();
    }
View Full Code Here

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

    @Deployment
    public static WebArchive createTestArchive() {
        return new WebArchiveBuilder()
                .withTestClassPackage(DecoratorAndInterceptorTest.class)
                .withBeansXml(
                        Descriptors.create(BeansDescriptor.class).createInterceptors()
                                .clazz(FooInterceptor1.class.getName(), FooInterceptor2.class.getName()).up()
                                .createDecorators().clazz(FooDecorator1.class.getName(), FooDecorator2.class.getName()).up())
View Full Code Here

@SpecVersion(spec = "cdi", version = "20091101")
public class BuiltinConversationDecoratorTest extends AbstractDecoratorTest {

    @Deployment
    public static WebArchive createTestArchive() {
        return new WebArchiveBuilder()
                .withTestClassPackage(BuiltinConversationDecoratorTest.class)
                .withClass(AbstractDecoratorTest.class)
                .withBeansXml(
                        Descriptors.create(BeansDescriptor.class).createDecorators()
                                .clazz(ConversationDecorator.class.getName()).up()).build();
View Full Code Here

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

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

public class RawInstanceObserverInjectionTest extends AbstractTest {

    @ShouldThrowException(DefinitionException.class)
    @Deployment
    public static WebArchive createTestArchive() {
        return new WebArchiveBuilder().withTestClass(RawInstanceObserverInjectionTest.class)
                .withClasses(Foo.class, ObserverInjectionBar.class).build();
    }
View Full Code Here

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

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

public class RawInstanceProducerMethodInjectionTest extends AbstractTest {

    @ShouldThrowException(DefinitionException.class)
    @Deployment
    public static WebArchive createTestArchive() {
        return new WebArchiveBuilder().withTestClass(RawInstanceProducerMethodInjectionTest.class)
                .withClasses(Foo.class, DisposerMethodInjectionBar.class).build();
    }
View Full Code Here

@SpecVersion(spec = "cdi", version = "20091101")
public class BuiltinInstanceDecoratorTest extends AbstractDecoratorTest {

    @Deployment
    public static WebArchive createTestArchive() {
        return new WebArchiveBuilder()
                .withTestClassPackage(BuiltinInstanceDecoratorTest.class)
                .withClass(AbstractDecoratorTest.class)
                .withBeansXml(
                        Descriptors.create(BeansDescriptor.class).createDecorators()
                                .clazz(MuleInstanceDecorator.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.