Package org.apache.felix.ipojo.dependency.impl

Examples of org.apache.felix.ipojo.dependency.impl.TransformedServiceReferenceImpl


        ServiceReference reference = mock(ServiceReference.class);
        when(reference.getPropertyKeys()).thenReturn(new String[] {"service.id", "foo"});
        when(reference.getProperty("service.id")).thenReturn(42);
        when(reference.getProperty("foo")).thenReturn("test");

        ServiceReference newReference = new TransformedServiceReferenceImpl(reference).addProperty("location",
                "kitchen");

        assertThat(newReference.getPropertyKeys()).contains("location");
        assertThat(newReference.getProperty("location")).isEqualTo("kitchen");
    }
View Full Code Here

TOP

Related Classes of org.apache.felix.ipojo.dependency.impl.TransformedServiceReferenceImpl

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.