Search in sources :

Example 1 with PlainService

use of org.apache.felix.dm.impl.ConfigurationDependencyImplTest.PlainService in project felix by apache.

the class FactoryConfigurationAdapterImplTest method testInvokePlainUpdatedMethodOk.

@Test
public void testInvokePlainUpdatedMethodOk() throws Exception {
    Ensure ensure = createEnsure();
    PlainService service = new PlainService(ensure);
    FactoryConfigurationAdapterImpl cdi = createConfigurationDependency(service);
    ((ManagedServiceFactory) cdi.m_component.getInstance()).updated(CONF_PID, (Dictionary<String, ?>) createDictionary());
    ensure.waitForStep(1, 1000);
    ((ManagedServiceFactory) cdi.m_component.getInstance()).deleted(CONF_PID);
    ensure.waitForStep(2, 1000);
}
Also used : PlainService(org.apache.felix.dm.impl.ConfigurationDependencyImplTest.PlainService) Ensure(test.Ensure) ManagedServiceFactory(org.osgi.service.cm.ManagedServiceFactory) Test(org.junit.Test)

Aggregations

PlainService (org.apache.felix.dm.impl.ConfigurationDependencyImplTest.PlainService)1 Test (org.junit.Test)1 ManagedServiceFactory (org.osgi.service.cm.ManagedServiceFactory)1 Ensure (test.Ensure)1