Package org.apache.webbeans.newtests.concepts.alternatives.common

Examples of org.apache.webbeans.newtests.concepts.alternatives.common.Pencil


        startContainer(beanClasses, beanXmls);

        Set<Bean<?>> beans = getBeanManager().getBeans(Pencil.class, new AnnotationLiteral<Pen>(){});
        Assert.assertEquals(1, beans.size());
        Pencil pencil = getInstance(Pencil.class, new AnnotationLiteral<Pen>(){});
        Assert.assertNotNull(pencil);
        Assert.assertEquals(42, pencil.getNr());

        beans = getBeanManager().getBeans(PencilProducerBean.class);
        Assert.assertEquals(1, beans.size());

        shutDownContainer();
View Full Code Here


        startContainer(beanClasses, beanXmls);

        Set<Bean<?>> beans = getBeanManager().getBeans(Pencil.class, new AnnotationLiteral<Pen>(){});
        Assert.assertEquals(1, beans.size());
        Pencil pencil = getInstance(Pencil.class, new AnnotationLiteral<Pen>(){});
        Assert.assertNotNull(pencil);
        Assert.assertEquals(42, pencil.getNr());

        shutDownContainer();
    }
View Full Code Here

        startContainer(beanClasses, beanXmls);

        Set<Bean<?>> beans = getBeanManager().getBeans(Pencil.class, new AnnotationLiteral<Pen>(){});
        Assert.assertEquals(1, beans.size());
        Pencil pencil = getInstance(Pencil.class, new AnnotationLiteral<Pen>(){});
        Assert.assertNotNull(pencil);
        Assert.assertEquals(42, pencil.getNr());

        beans = getBeanManager().getBeans(PencilProducerBean.class);
        Assert.assertEquals(1, beans.size());

        shutDownContainer();
View Full Code Here

TOP

Related Classes of org.apache.webbeans.newtests.concepts.alternatives.common.Pencil

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.