Package org.ops4j.pax.exam.sample3.ice

Examples of org.ops4j.pax.exam.sample3.ice.VanillaService


    @Test
    public void checkInstance() {
        AnnotationLiteral<Chocolate> qualifier = new AnnotationLiteral<Chocolate>() {
        };
        Instance<IceCreamService> chocolateInstance = allFlavours.select(qualifier);
        IceCreamService iceCreamService = chocolateInstance.get();
        assertThat(iceCreamService.getFlavour(), is("Chocolate"));

        instance.select(IceCreamService.class, qualifier).get();
    }
View Full Code Here

TOP

Related Classes of org.ops4j.pax.exam.sample3.ice.VanillaService

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.