Package org.jboss.cdi.tck.shrinkwrap.descriptors

Examples of org.jboss.cdi.tck.shrinkwrap.descriptors.Beans11DescriptorImpl


    public static WebArchive createTestArchive() {
        return createBuilderBase()
                .withTestClass(SelectedAlternative01Test.class)
                .withClasses(Alpha.class)
                .withBeanLibrary(
                        new Beans11DescriptorImpl().alternatives(new BeansXmlClass(Foo.class, 1000), new BeansXmlStereotype(
                                SelectedStereotype.class, 60)), Bravo.class, Foo.class, Baz.class)
                .withBeanLibrary(new Beans11DescriptorImpl().alternatives(new BeansXmlClass(BarProducer.class, 1100)),
                        Charlie.class, Bar.class, BarProducer.class).build();
    }
View Full Code Here


    @Deployment
    public static WebArchive createTestArchive() {
        return createBuilderBase()
                .withTestClass(SelectedAlternative02Test.class)
                .withClasses(Alpha.class, SimpleTestBean.class)
                .withBeanLibrary(new Beans11DescriptorImpl().alternatives(new BeansXmlClass(Foo.class, 1000)), Bravo.class,
                        Foo.class)
                .withBeanLibrary(new Beans11DescriptorImpl().alternatives(new BeansXmlClass(Bar.class, 2000)), Charlie.class,
                        Bar.class).build();
    }
View Full Code Here

    @Deployment
    public static WebArchive createTestArchive() {
        return createBuilderBase()
                .withTestClass(SelectedAlternative04Test.class)
                .withBeansXml(
                        new Beans11DescriptorImpl().alternatives(new BeansXmlClass(Foo.class, false), new BeansXmlStereotype(
                                SelectedStereotype.class, false), new BeansXmlClass(BarProducer.class, false)))
                .withClasses(Alpha.class)
                .withBeanLibrary(
                        new Beans11DescriptorImpl().alternatives(new BeansXmlClass(Foo.class, 1000), new BeansXmlStereotype(
                                SelectedStereotype.class, 60)), Bravo.class, Foo.class, Baz.class)
                .withBeanLibrary(new Beans11DescriptorImpl().alternatives(new BeansXmlClass(BarProducer.class, 1100)),
                        Charlie.class, Bar.class, BarProducer.class).build();
    }
View Full Code Here

    @Deployment
    public static WebArchive createTestArchive() {
        return createBuilderBase()
                .withTestClass(SelectedAlternative05Test.class)
                .withBeansXml(
                        new Beans11DescriptorImpl().alternatives(new BeansXmlClass(Bar.class, true), new BeansXmlClass(
                                BarProducer.class, true), new BeansXmlStereotype(SelectedStereotype.class, true)))
                .withClasses(Alpha.class, SimpleTestBean.class)
                .withBeanLibrary(
                        new Beans11DescriptorImpl().alternatives(new BeansXmlClass(Foo.class, 1000), new BeansXmlStereotype(
                                SelectedStereotype.class, false, 60)), Bravo.class, Foo.class, Baz.class)
                .withBeanLibrary(
                        new Beans11DescriptorImpl().alternatives(new BeansXmlClass(Bar.class, false, 2000), new BeansXmlClass(
                                BarProducer.class, false, 1100)), Charlie.class, Bar.class, BarProducer.class).build();
    }
View Full Code Here

    @Deployment
    public static WebArchive createTestArchive() {
        return createBuilderBase()
                .withTestClass(SelectedAlternative03Test.class)
                .withClasses(Alpha.class, SimpleTestBean.class)
                .withBeanLibrary(new Beans11DescriptorImpl().alternatives(new BeansXmlClass(Foo.class, 1000)), Bravo.class,
                        Foo.class)
                .withBeanLibrary(new Beans11DescriptorImpl().alternatives(new BeansXmlClass(Bar.class, false, 2000)),
                        Charlie.class, Bar.class).build();
    }
View Full Code Here

TOP

Related Classes of org.jboss.cdi.tck.shrinkwrap.descriptors.Beans11DescriptorImpl

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.