@Test(expected = NullPointerException.class) public void testAddNullKey() { manager.addKey(null); }
@Override public void addKey(DeviceKey deviceKey) { checkNotNull(deviceKey, "Device key cannot be null"); store.createOrUpdateDeviceKey(deviceKey); }
DeviceKeyManager extends AbstractListenerManager<DeviceKeyEvent, DeviceKeyListener> implements DeviceKeyService, DeviceKeyAdminService { @Override public void addKey(DeviceKey deviceKey) { checkNotNull(deviceKey, "Device key cannot be null"); store.createOrUpdateDeviceKey(deviceKey); } }
DeviceKeyManager extends AbstractListenerManager<DeviceKeyEvent, DeviceKeyListener> implements DeviceKeyService, DeviceKeyAdminService { @Override public void addKey(DeviceKey deviceKey) { checkNotNull(deviceKey, "Device key cannot be null"); store.createOrUpdateDeviceKey(deviceKey); }  }
DeviceKeyManager extends AbstractListenerManager<DeviceKeyEvent, DeviceKeyListener> implements DeviceKeyService, DeviceKeyAdminService { @Override public void addKey(DeviceKey deviceKey) { checkNotNull(deviceKey, "Device key cannot be null"); store.createOrUpdateDeviceKey(deviceKey); }  @Activate void activate(); @Deactivate void deactivate(); @Override void addKey(DeviceKey deviceKey); @Override void removeKey(DeviceKeyId deviceKeyId); @Override Collection<DeviceKey> getDeviceKeys(); @Override DeviceKey getDeviceKey(DeviceKeyId deviceKeyId); }
DeviceKeyManager extends AbstractListenerManager<DeviceKeyEvent, DeviceKeyListener> implements DeviceKeyService, DeviceKeyAdminService { @Override public void addKey(DeviceKey deviceKey) { checkNotNull(deviceKey, "Device key cannot be null"); store.createOrUpdateDeviceKey(deviceKey); }  @Activate void activate(); @Deactivate void deactivate(); @Override void addKey(DeviceKey deviceKey); @Override void removeKey(DeviceKeyId deviceKeyId); @Override Collection<DeviceKey> getDeviceKeys(); @Override DeviceKey getDeviceKey(DeviceKeyId deviceKeyId);  }