Update rename device with a print message

syncAPITesting-2
Akeela Azhar 1 year ago
parent 8004e963fd
commit 43cd189b48

@ -511,12 +511,13 @@ public class DeviceManagementServiceImpl implements DeviceManagementService {
Device persistedDevice = deviceManagementProviderService.getDevice(new DeviceIdentifier
(deviceId, deviceType), true);
persistedDevice.setName(device.getName());
System.out.println("This is renamed device");
System.out.println("This is rename device");
boolean responseOfmodifyEnrollment = deviceManagementProviderService.modifyEnrollment(persistedDevice);
boolean responseOfDeviceNameChanged = deviceManagementProviderService.sendDeviceNameChangedNotification(
persistedDevice);
boolean response = responseOfmodifyEnrollment && responseOfDeviceNameChanged;
System.out.println("Rename Device " + message);
String message = "Rename Device";
// End measuring API call response time
long endTime = System.currentTimeMillis();

Loading…
Cancel
Save