Package org.apache.felix.ipojo.composite

Examples of org.apache.felix.ipojo.composite.CompositeManager


        assertEquals("Check composite instance state (" + id.getState() + ")", id.getState(), ComponentInstance.VALID);

        assertEquals("Check contained instance", id.getContainedInstances().length, 0);

        assertTrue("Check composite manager", ci instanceof CompositeManager);
        CompositeManager cm = (CompositeManager) ci;
        ServiceContext sc = cm.getServiceContext();
        try {
            assertEquals("Check number of factories imported", sc.getServiceReferences(Factory.class.getName(), null).length, getContext().getServiceReferences(Factory.class.getName(), null).length);
        } catch (InvalidSyntaxException e) {
            fail("Invalid filter : " + e.getMessage());
        }
View Full Code Here


            e.printStackTrace();
            fail("Unacceptable configuration : " + e.getMessage());
        }

        assertTrue("Check composite manager", ci instanceof CompositeManager);
        CompositeManager cm = (CompositeManager) ci;
        ServiceContext sc = cm.getServiceContext();
        try {
            assertEquals("Check number of factories imported", sc.getServiceReferences(Factory.class.getName(),
                    null).length, getContext().getServiceReferences(Factory.class.getName(), null).length);
        } catch (InvalidSyntaxException e) {
            fail("Invalid filter : " + e.getMessage());
View Full Code Here

        } catch (Exception e) {
            fail("Unacceptable configuration : " + e.getMessage());
        }

        assertTrue("Check composite manager", ci instanceof CompositeManager);
        CompositeManager cm = (CompositeManager) ci;
        ServiceContext sc = cm.getServiceContext();
        try {
            assertEquals("Check number of factories imported", sc.getServiceReferences(Factory.class.getName(), null).length, getContext().getServiceReferences(Factory.class.getName(), null).length);
        } catch (InvalidSyntaxException e) {
            fail("Invalid filter : " + e.getMessage());
        }
View Full Code Here

        } catch (Exception e) {
            fail("Unacceptable configuration : " + e.getMessage());
        }

        assertTrue("Check composite manager", ci instanceof CompositeManager);
        CompositeManager cm = (CompositeManager) ci;
        ServiceContext sc = cm.getServiceContext();
        try {
            assertEquals("Check number of factories imported", sc.getServiceReferences(Factory.class.getName(), null).length, getContext().getServiceReferences(Factory.class.getName(), null).length);
        } catch (InvalidSyntaxException e) {
            fail("Invalid filter : " + e.getMessage());
        }
View Full Code Here

TOP

Related Classes of org.apache.felix.ipojo.composite.CompositeManager

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.