@Test public void testDestroyRemovesProvider() { verify(m_deviceManager, never()).addDeviceStateProvider(m_defaultConfigService); verify(m_deviceManager, never()).removeDeviceStateProvider(m_defaultConfigService); m_defaultConfigService.destroy(); verify(m_deviceManager, never()).addDeviceStateProvider(m_defaultConfigService); verify(m_deviceManager).removeDeviceStateProvider(m_defaultConfigService); }
public void destroy() { m_deviceManager.removeDeviceStateProvider(this); }
DefaultConfigService implements DeviceStateProvider { public void destroy() { m_deviceManager.removeDeviceStateProvider(this); } }
DefaultConfigService implements DeviceStateProvider { public void destroy() { m_deviceManager.removeDeviceStateProvider(this); } DefaultConfigService(DeviceManager deviceManager, PmaRegistry pmaRegistry, AdapterManager adapterManager); }
DefaultConfigService implements DeviceStateProvider { public void destroy() { m_deviceManager.removeDeviceStateProvider(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 destroy() { m_deviceManager.removeDeviceStateProvider(this); } DefaultConfigService(DeviceManager deviceManager, PmaRegistry pmaRegistry, AdapterManager adapterManager); void init(); void destroy(); @Override void deviceAdded(String deviceName); @Override void deviceRemoved(String deviceName);  }