From 8bf1e4083142a5e1599331ebc046d9daa3195b3d Mon Sep 17 00:00:00 2001 From: prathabanKavin Date: Mon, 1 Jul 2024 12:35:47 +0530 Subject: [PATCH] Add installation monitoring methods to devicemgtmock --- .../DeviceManagementProviderServiceMock.java | 25 +++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/components/mobile-plugins/android-plugin/io.entgra.device.mgt.plugins.mobile.android.api/src/test/java/io/entgra/device/mgt/plugins/mobile/android/api/mocks/DeviceManagementProviderServiceMock.java b/components/mobile-plugins/android-plugin/io.entgra.device.mgt.plugins.mobile.android.api/src/test/java/io/entgra/device/mgt/plugins/mobile/android/api/mocks/DeviceManagementProviderServiceMock.java index bf5314ee9..159e5f9b2 100644 --- a/components/mobile-plugins/android-plugin/io.entgra.device.mgt.plugins.mobile.android.api/src/test/java/io/entgra/device/mgt/plugins/mobile/android/api/mocks/DeviceManagementProviderServiceMock.java +++ b/components/mobile-plugins/android-plugin/io.entgra.device.mgt.plugins.mobile.android.api/src/test/java/io/entgra/device/mgt/plugins/mobile/android/api/mocks/DeviceManagementProviderServiceMock.java @@ -75,8 +75,8 @@ import io.entgra.device.mgt.core.device.mgt.common.pull.notification.PullNotific import io.entgra.device.mgt.core.device.mgt.common.push.notification.NotificationStrategy; import io.entgra.device.mgt.core.device.mgt.common.spi.DeviceManagementService; import io.entgra.device.mgt.core.device.mgt.common.type.mgt.DeviceStatus; -import io.entgra.device.mgt.core.device.mgt.core.dto.DeviceType; -import io.entgra.device.mgt.core.device.mgt.core.dto.DeviceTypeVersion; +import io.entgra.device.mgt.core.device.mgt.core.dao.DeviceManagementDAOException; +import io.entgra.device.mgt.core.device.mgt.core.dto.*; import io.entgra.device.mgt.core.device.mgt.core.service.DeviceManagementProviderService; import io.entgra.device.mgt.core.device.mgt.core.service.EmailMetaInfo; import io.entgra.device.mgt.plugins.mobile.android.api.utils.TestUtils; @@ -84,6 +84,7 @@ import io.entgra.device.mgt.plugins.mobile.android.api.utils.TestUtils; import org.apache.commons.collections.map.SingletonMap; import java.sql.Timestamp; +import java.util.Collections; import java.util.Date; import java.util.List; import java.util.Map; @@ -919,4 +920,24 @@ public class DeviceManagementProviderServiceMock implements DeviceManagementProv public void deleteDeviceDataByTenantDomain(String s) throws DeviceManagementException { throw new UnsupportedOperationException("Not implemented"); } + + @Override + public OwnerWithDeviceDTO getOwnersWithDeviceIds(String s) throws DeviceManagementDAOException { + return null; + } + + @Override + public OwnerWithDeviceDTO getOwnerWithDeviceByDeviceId(int i) throws DeviceManagementDAOException { + return null; + } + + @Override + public List getDevicesByTenantId(int i) throws DeviceManagementDAOException { + return Collections.emptyList(); + } + + @Override + public OperationDTO getOperationDetailsById(int i) throws OperationManagementException { + return null; + } }