Package org.apache.webbeans.newtests.injection.injectionpoint.beans

Examples of org.apache.webbeans.newtests.injection.injectionpoint.beans.ProducerMethodInjectionPointOwner


    @Test
    public void testDynamicResolvingInjectionPoint()
    {
        startContainer(InjectionPointOwnerProducer.class, ProducerMethodInjectionPointOwner.class, AbstractInjectionPointOwner.class);

        ProducerMethodInjectionPointOwner producedInstance = getInstance(ProducerMethodInjectionPointOwner.class);
        assertThat(producedInstance, notNullValue());
        InjectionPoint ip = producedInstance.getInjectionPoint();
        assertThat(ip, nullValue());
    }
View Full Code Here


        ProducerInjectionPointInstanceOwner pipo = getInstance(ProducerInjectionPointInstanceOwner.class);
        assertNotNull(pipo);
        Instance<ProducerMethodInjectionPointOwner> ipOwnerInstance = pipo.getIpOwnerInstance();
        assertNotNull(ipOwnerInstance);
        ProducerMethodInjectionPointOwner pmp = ipOwnerInstance.select(DefaultLiteral.INSTANCE).get();
        assertNotNull(pmp);
        assertNotNull(pmp.getInjectionPoint());
    }
View Full Code Here

TOP

Related Classes of org.apache.webbeans.newtests.injection.injectionpoint.beans.ProducerMethodInjectionPointOwner

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.