From a31afaa85f57ea0e04c8c4df7473074a7f9819e1 Mon Sep 17 00:00:00 2001 From: Saad Sahibjan Date: Fri, 25 Jan 2019 13:49:34 +0530 Subject: [PATCH] Fix mock service broken due to core changes in DeviceManagementProviderService --- .../DeviceManagementProviderServiceMock.java | 17 +++++++++++++++++ .../DeviceManagementProviderServiceMock.java | 17 +++++++++++++++++ 2 files changed, 34 insertions(+) diff --git a/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.api/src/test/java/org/wso2/carbon/mdm/services/android/mocks/DeviceManagementProviderServiceMock.java b/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.api/src/test/java/org/wso2/carbon/mdm/services/android/mocks/DeviceManagementProviderServiceMock.java index 7b6f702f2..cb13a0734 100644 --- a/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.api/src/test/java/org/wso2/carbon/mdm/services/android/mocks/DeviceManagementProviderServiceMock.java +++ b/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.api/src/test/java/org/wso2/carbon/mdm/services/android/mocks/DeviceManagementProviderServiceMock.java @@ -566,4 +566,21 @@ public class DeviceManagementProviderServiceMock implements DeviceManagementProv GeoCoordinate geoCoordinate1, int i) throws DeviceManagementException { return null; } + + @Override + public int getDeviceCountOfTypeByStatus(String deviceType, String deviceStatus) throws DeviceManagementException { + return 0; + } + + @Override + public List getDeviceIdentifiersByStatus(String deviceType, String deviceStatus) + throws DeviceManagementException { + return null; + } + + @Override + public boolean bulkUpdateDeviceStatus(String deviceType, List deviceList, String status) + throws DeviceManagementException { + return false; + } } diff --git a/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.v09.api/src/test/java/org/wso2/carbon/mdm/services/android/mocks/DeviceManagementProviderServiceMock.java b/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.v09.api/src/test/java/org/wso2/carbon/mdm/services/android/mocks/DeviceManagementProviderServiceMock.java index 7b6f702f2..cb13a0734 100644 --- a/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.v09.api/src/test/java/org/wso2/carbon/mdm/services/android/mocks/DeviceManagementProviderServiceMock.java +++ b/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.v09.api/src/test/java/org/wso2/carbon/mdm/services/android/mocks/DeviceManagementProviderServiceMock.java @@ -566,4 +566,21 @@ public class DeviceManagementProviderServiceMock implements DeviceManagementProv GeoCoordinate geoCoordinate1, int i) throws DeviceManagementException { return null; } + + @Override + public int getDeviceCountOfTypeByStatus(String deviceType, String deviceStatus) throws DeviceManagementException { + return 0; + } + + @Override + public List getDeviceIdentifiersByStatus(String deviceType, String deviceStatus) + throws DeviceManagementException { + return null; + } + + @Override + public boolean bulkUpdateDeviceStatus(String deviceType, List deviceList, String status) + throws DeviceManagementException { + return false; + } }