mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Adding additonal test cases
This commit is contained in:
parent
530de81ac1
commit
b6498af095
@ -558,6 +558,13 @@ public class DeviceManagementProviderServiceTest extends BaseDeviceManagementTes
|
|||||||
Assert.assertTrue(status);
|
Assert.assertTrue(status);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test(dependsOnMethods = {"testReEnrollmentofSameDeviceUnderSameUser"})
|
||||||
|
public void testUpdateDevicesStatusWithDeviceID() throws DeviceManagementException {
|
||||||
|
boolean status = deviceMgtService.setStatus(new DeviceIdentifier(DEVICE_ID, DEVICE_TYPE),"user1",
|
||||||
|
EnrolmentInfo.Status.ACTIVE);
|
||||||
|
Assert.assertTrue(status);
|
||||||
|
}
|
||||||
|
|
||||||
@Test(dependsOnMethods = {"testReEnrollmentofSameDeviceUnderSameUser"})
|
@Test(dependsOnMethods = {"testReEnrollmentofSameDeviceUnderSameUser"})
|
||||||
public void testUpdateDevicesStatusOfNonExistingUser() throws DeviceManagementException {
|
public void testUpdateDevicesStatusOfNonExistingUser() throws DeviceManagementException {
|
||||||
boolean status = deviceMgtService.setStatus("random-user", EnrolmentInfo.Status.REMOVED);
|
boolean status = deviceMgtService.setStatus("random-user", EnrolmentInfo.Status.REMOVED);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user