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);
}
Aggregations