Package org.apache.sling.testing.mock.osgi.OsgiMetadataUtil

Examples of org.apache.sling.testing.mock.osgi.OsgiMetadataUtil.Reference


    public void testReferences() {
        Document doc = OsgiMetadataUtil.getMetadata(ReflectionServiceUtilTest.Service3.class);
        List<Reference> references = OsgiMetadataUtil.getReferences(ReflectionServiceUtilTest.Service3.class, doc);
        assertEquals(3, references.size());

        Reference ref1 = references.get(0);
        assertEquals("reference2", ref1.getName());
        assertEquals("org.apache.sling.testing.mock.osgi.ReflectionServiceUtilTest$ServiceInterface2", ref1.getInterfaceType());
        assertEquals(ReferenceCardinality.MANDATORY_MULTIPLE, ref1.getCardinality());
        assertEquals("bindReference2", ref1.getBind());
        assertEquals("unbindReference2", ref1.getUnbind());
    }
View Full Code Here

TOP

Related Classes of org.apache.sling.testing.mock.osgi.OsgiMetadataUtil.Reference

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.