mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Refactoring.
This commit is contained in:
parent
f9a040d303
commit
1938ef77b9
@ -109,7 +109,7 @@ public class DeviceTypeManagementServiceTest {
|
|||||||
Mockito.when(this.deviceManagementProviderService.getAvailableDeviceTypes()).thenThrow(new
|
Mockito.when(this.deviceManagementProviderService.getAvailableDeviceTypes()).thenThrow(new
|
||||||
DeviceManagementException());
|
DeviceManagementException());
|
||||||
|
|
||||||
Response response = this.deviceTypeManagementService.getDeviceTypes("");
|
Response response = this.deviceTypeManagementService.getDeviceTypes(MODIFIED_SINCE);
|
||||||
Assert.assertNotNull(response);
|
Assert.assertNotNull(response);
|
||||||
Assert.assertEquals(response.getStatus(), Response.Status.INTERNAL_SERVER_ERROR.getStatusCode());
|
Assert.assertEquals(response.getStatus(), Response.Status.INTERNAL_SERVER_ERROR.getStatusCode());
|
||||||
Mockito.reset(deviceManagementProviderService);
|
Mockito.reset(deviceManagementProviderService);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user