From 8cf15caa70ffc8f191234ba99e8e6987e3faabe5 Mon Sep 17 00:00:00 2001 From: Pahansith Gunathilake Date: Wed, 3 Aug 2022 10:56:39 +0530 Subject: [PATCH] Fix broken testcases --- .../DeviceManagementProviderServiceMock.java | 21 +++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) 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 8bf0661529..966b18cb82 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 @@ -61,6 +61,9 @@ import org.wso2.carbon.device.mgt.common.exceptions.UnauthorizedDeviceAccessExce import org.wso2.carbon.device.mgt.common.exceptions.UserNotFoundException; import org.wso2.carbon.device.mgt.common.configuration.mgt.ConfigurationManagementException; import org.wso2.carbon.device.mgt.common.configuration.mgt.PlatformConfiguration; +import org.wso2.carbon.device.mgt.common.geo.service.GeoCluster; +import org.wso2.carbon.device.mgt.common.geo.service.GeoCoordinate; +import org.wso2.carbon.device.mgt.common.geo.service.GeoQuery; import org.wso2.carbon.device.mgt.common.invitation.mgt.DeviceEnrollmentInvitationDetails; import org.wso2.carbon.device.mgt.common.license.mgt.License; import org.wso2.carbon.device.mgt.common.operation.mgt.Activity; @@ -72,8 +75,8 @@ import org.wso2.carbon.device.mgt.common.push.notification.NotificationStrategy; import org.wso2.carbon.device.mgt.common.spi.DeviceManagementService; import org.wso2.carbon.device.mgt.core.dto.DeviceType; import org.wso2.carbon.device.mgt.core.dto.DeviceTypeVersion; -import org.wso2.carbon.device.mgt.core.geo.GeoCluster; -import org.wso2.carbon.device.mgt.core.geo.geoHash.GeoCoordinate; + + import org.wso2.carbon.device.mgt.core.service.DeviceManagementProviderService; import org.wso2.carbon.device.mgt.core.service.EmailMetaInfo; import org.wso2.carbon.mdm.services.android.utils.TestUtils; @@ -674,11 +677,12 @@ public class DeviceManagementProviderServiceMock implements DeviceManagementProv } @Override - public List findGeoClusters(String deviceType, GeoCoordinate geoCoordinate, - GeoCoordinate geoCoordinate1, int i) throws DeviceManagementException { + public List findGeoClusters(GeoQuery geoQuery) throws DeviceManagementException { return null; } + + @Override public int getDeviceCountOfTypeByStatus(String s, String s1) throws DeviceManagementException { return 0; @@ -754,11 +758,11 @@ public class DeviceManagementProviderServiceMock implements DeviceManagementProv } @Override - public PaginationResult getAppSubscribedDevices(int i, int i1, List list, List list1) - throws DeviceManagementException { + public PaginationResult getAppSubscribedDevices(PaginationRequest paginationRequest, List list) throws DeviceManagementException { return null; } + @Override public PaginationResult getApplications(PaginationRequest paginationRequest) throws ApplicationManagementException, DeviceTypeNotFoundException { @@ -810,4 +814,9 @@ public class DeviceManagementProviderServiceMock implements DeviceManagementProv @Override public License getLicenseConfig(String s) throws DeviceManagementException { return null; } + + @Override + public PaginationResult getDevicesDetails(PaginationRequest paginationRequest, List list, String s) throws DeviceManagementException { + return null; + } }