Search in sources :

Example 1 with MutatingServiceConsumer

use of org.apache.felix.scr.integration.components.MutatingServiceConsumer in project felix by apache.

the class MutablePropertiesTest method test_mutable_properties_consumer.

@Test
public void test_mutable_properties_consumer() throws Exception {
    ServiceReference<MutatingServiceConsumer> mscRef = bundleContext.getServiceReference(MutatingServiceConsumer.class);
    MutatingServiceConsumer msc = bundleContext.getService(mscRef);
    assertMsc(msc, null, null, null);
    String componentName = "components.mutable.properties.return2";
    ComponentDescriptionDTO cd = findComponentDescriptorByName(componentName);
    enableAndCheck(cd);
    assertMsc(msc, true, true, null);
}
Also used : MutatingServiceConsumer(org.apache.felix.scr.integration.components.MutatingServiceConsumer) ComponentDescriptionDTO(org.osgi.service.component.runtime.dto.ComponentDescriptionDTO) Test(org.junit.Test)

Aggregations

MutatingServiceConsumer (org.apache.felix.scr.integration.components.MutatingServiceConsumer)1 Test (org.junit.Test)1 ComponentDescriptionDTO (org.osgi.service.component.runtime.dto.ComponentDescriptionDTO)1