@Test public void testInitAddsProviderProvider() { verify(m_deviceManager, never()).addDeviceStateProvider(m_defaultConfigService); verify(m_deviceManager, never()).removeDeviceStateProvider(m_defaultConfigService); m_defaultConfigService.init(); verify(m_deviceManager).addDeviceStateProvider(m_defaultConfigService); verify(m_deviceManager, never()).removeDeviceStateProvider(m_defaultConfigService); }
public void init() { m_deviceManager.addDeviceStateProvider(this); }
DefaultConfigService implements DeviceStateProvider { public void init() { m_deviceManager.addDeviceStateProvider(this); } }
DefaultConfigService implements DeviceStateProvider { public void init() { m_deviceManager.addDeviceStateProvider(this); } DefaultConfigService(DeviceManager deviceManager, PmaRegistry pmaRegistry, AdapterManager adapterManager); }
DefaultConfigService implements DeviceStateProvider { public void init() { m_deviceManager.addDeviceStateProvider(this); } DefaultConfigService(DeviceManager deviceManager, PmaRegistry pmaRegistry, AdapterManager adapterManager); void init(); void destroy(); @Override void deviceAdded(String deviceName); @Override void deviceRemoved(String deviceName); }
DefaultConfigService implements DeviceStateProvider { public void init() { m_deviceManager.addDeviceStateProvider(this); } DefaultConfigService(DeviceManager deviceManager, PmaRegistry pmaRegistry, AdapterManager adapterManager); void init(); void destroy(); @Override void deviceAdded(String deviceName); @Override void deviceRemoved(String deviceName);  }