From 4a0089df75408830ed8e86f58cef5b9c3d1e74ed Mon Sep 17 00:00:00 2001 From: "tcdlpds@gmail.com" Date: Tue, 15 Dec 2020 07:58:06 +0530 Subject: [PATCH] Fix build failure --- .../DeviceManagementProviderServiceMock.java | 79 +++++++++++-------- 1 file changed, 46 insertions(+), 33 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 5faec5758..9c52d505b 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 @@ -35,6 +35,7 @@ package org.wso2.carbon.mdm.services.android.mocks; +import org.wso2.carbon.device.mgt.common.ActivityPaginationRequest; import org.wso2.carbon.device.mgt.common.Device; import org.wso2.carbon.device.mgt.common.DeviceIdentifier; import org.wso2.carbon.device.mgt.common.DeviceTransferRequest; @@ -84,6 +85,7 @@ import java.util.List; import java.util.Map; public class DeviceManagementProviderServiceMock implements DeviceManagementProviderService { + @Override public List getAllDevices(String s) throws DeviceManagementException { return null; @@ -450,7 +452,6 @@ public class DeviceManagementProviderServiceMock implements DeviceManagementProv @Override public void notifyOperationToDevices(Operation operation, List list) throws DeviceManagementException { - } @Override @@ -460,16 +461,13 @@ public class DeviceManagementProviderServiceMock implements DeviceManagementProv } @Override - public void addTaskOperation(String s, Operation operation, - DynamicTaskContext dynamicTaskContext) + public void addTaskOperation(String s, Operation operation, DynamicTaskContext dynamicTaskContext) throws OperationManagementException { - } @Override public void addTaskOperation(String s, List list, Operation operation) throws OperationManagementException { - } @Override @@ -485,7 +483,8 @@ public class DeviceManagementProviderServiceMock implements DeviceManagementProv } @Override - public List getOperations(DeviceIdentifier deviceIdentifier, Operation.Status status) throws OperationManagementException { + public List getOperations(DeviceIdentifier deviceIdentifier, Operation.Status status) + throws OperationManagementException { return null; } @@ -506,7 +505,8 @@ public class DeviceManagementProviderServiceMock implements DeviceManagementProv } @Override - public Operation getNextPendingOperation(DeviceIdentifier deviceIdentifier, long l) throws OperationManagementException { + public Operation getNextPendingOperation(DeviceIdentifier deviceIdentifier, long l) + throws OperationManagementException { return null; } @@ -522,7 +522,8 @@ public class DeviceManagementProviderServiceMock implements DeviceManagementProv } @Override - public boolean updateProperties(DeviceIdentifier deviceIdentifier, List list) throws DeviceManagementException { + public boolean updateProperties(DeviceIdentifier deviceIdentifier, List list) + throws DeviceManagementException { return false; } @@ -575,19 +576,16 @@ public class DeviceManagementProviderServiceMock implements DeviceManagementProv } @Override - public List getActivitiesUpdatedAfterByUser(long l, String s, int i, int i1) throws OperationManagementException { + public List getActivitiesUpdatedAfterByUser(long l, String s, int i, int i1) + throws OperationManagementException { return null; } @Override - public int getActivityCountUpdatedAfter(long l) throws OperationManagementException { - return 0; - } + public int getActivityCountUpdatedAfter(long l) throws OperationManagementException { return 0; } @Override - public int getActivityCountUpdatedAfterByUser(long l, String s) throws OperationManagementException { - return 0; - } + public int getActivityCountUpdatedAfterByUser(long l, String s) throws OperationManagementException { return 0; } @Override public List getMonitoringOperationList(String s) { @@ -632,7 +630,6 @@ public class DeviceManagementProviderServiceMock implements DeviceManagementProv @Override public void registerDeviceType(DeviceManagementService deviceManagementService) throws DeviceManagementException { - } @Override @@ -651,8 +648,7 @@ public class DeviceManagementProviderServiceMock implements DeviceManagementProv } @Override - public List getDeviceLocationInfo(DeviceIdentifier deviceIdentifier, - long l, long l1) + public List getDeviceLocationInfo(DeviceIdentifier deviceIdentifier, long l, long l1) throws DeviceManagementException { return null; } @@ -689,7 +685,8 @@ public class DeviceManagementProviderServiceMock implements DeviceManagementProv } @Override - public boolean updateEnrollment(String s, boolean b, List list) throws DeviceManagementException, UserNotFoundException, InvalidDeviceException { + public boolean updateEnrollment(String s, boolean b, List list) + throws DeviceManagementException, UserNotFoundException, InvalidDeviceException { return false; } @@ -734,48 +731,52 @@ public class DeviceManagementProviderServiceMock implements DeviceManagementProv } @Override - public DeviceConfiguration getDeviceConfiguration(Map map) throws DeviceManagementException, DeviceNotFoundException, UnauthorizedDeviceAccessException, AmbiguousConfigurationException { + public DeviceConfiguration getDeviceConfiguration(Map map) + throws DeviceManagementException, DeviceNotFoundException, UnauthorizedDeviceAccessException, + AmbiguousConfigurationException { return null; } @Override - public List transferDeviceToTenant(DeviceTransferRequest deviceTransferRequest) throws DeviceManagementException, DeviceNotFoundException { + public List transferDeviceToTenant(DeviceTransferRequest deviceTransferRequest) + throws DeviceManagementException, DeviceNotFoundException { return null; } @Override - public PaginationResult getAppSubscribedDevices(int i, int i1, List list, String s) throws DeviceManagementException { + public PaginationResult getAppSubscribedDevices(int i, int i1, List list, String s) + throws DeviceManagementException { return null; } @Override - public PaginationResult getApplications(PaginationRequest paginationRequest) throws ApplicationManagementException, DeviceTypeNotFoundException { + public PaginationResult getApplications(PaginationRequest paginationRequest) + throws ApplicationManagementException, DeviceTypeNotFoundException { return null; } @Override - public List getAppVersions(String s) throws ApplicationManagementException { - return null; - } + public List getAppVersions(String s) throws ApplicationManagementException { return null; } @Override - public int getFunctioningDevicesInSystem() throws DeviceManagementException { - return 0; - } + public int getFunctioningDevicesInSystem() throws DeviceManagementException { return 0; } @Override public boolean isOperationExist(DeviceIdentifier deviceIdentifier, int i) throws OperationManagementException { return false; } - @Override public List getDeviceByIdList(List list) throws DeviceManagementException { + @Override + public List getDeviceByIdList(List list) throws DeviceManagementException { return null; } - @Override public DeviceEnrollmentInvitationDetails getDeviceEnrollmentInvitationDetails(String s) { return null; } + @Override + public DeviceEnrollmentInvitationDetails getDeviceEnrollmentInvitationDetails(String s) { return null; } - @Override public void triggerCorrectiveActions(String s, String s1, List list, - List list1) throws DeviceManagementException, DeviceNotFoundException { + @Override + public void triggerCorrectiveActions(String s, String s1, List list, List list1) + throws DeviceManagementException, DeviceNotFoundException { } @@ -784,4 +785,16 @@ public class DeviceManagementProviderServiceMock implements DeviceManagementProv throws DeviceManagementException { return null; } + + @Override + public List getActivities(ActivityPaginationRequest activityPaginationRequest) + throws OperationManagementException { + return null; + } + + @Override + public int getActivitiesCount(ActivityPaginationRequest activityPaginationRequest) + throws OperationManagementException { + return 0; + } }