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

Examples of org.apache.sling.testing.mock.osgi.OsgiMetadataUtilTest.ServiceWithMetadata


        assertEquals("value1", this.serviceReference.getProperty("customProp1"));
    }

    @Test
    public void testWithOsgiMetadata() {
        ServiceWithMetadata serviceWithMetadata = new OsgiMetadataUtilTest.ServiceWithMetadata();
        bundleContext.registerService((String) null, serviceWithMetadata, null);
        ServiceReference reference = this.bundleContext.getServiceReference(Comparable.class.getName());

        assertEquals(5000, reference.getProperty("service.ranking"));
        assertEquals("The Apache Software Foundation", reference.getProperty("service.vendor"));
View Full Code Here

TOP

Related Classes of org.apache.sling.testing.mock.osgi.OsgiMetadataUtilTest.ServiceWithMetadata

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.