From ece8e06994eecff6f5937d459c5e9c82ac08b2d9 Mon Sep 17 00:00:00 2001 From: Pahansith Gunathilake Date: Tue, 10 May 2022 11:05:02 +0530 Subject: [PATCH] Fix test failure --- .../mocks/DeviceManagementProviderServiceMock.java | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) 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 342cc94399..32168a7b27 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 @@ -81,6 +81,7 @@ import org.wso2.carbon.mdm.services.android.utils.TestUtils; import org.apache.commons.collections.map.SingletonMap; +import java.sql.Timestamp; import java.util.Date; import java.util.List; import java.util.Map; @@ -145,6 +146,16 @@ public class DeviceManagementProviderServiceMock implements DeviceManagementProv return null; } + @Override + public PaginationResult getAllDevicesBillings(PaginationRequest paginationRequest, int i, String s, Timestamp timestamp, Timestamp timestamp1, boolean b) throws DeviceManagementException { + return null; + } + + @Override + public PaginationResult createBillingFile(int i, String s, Timestamp timestamp, Timestamp timestamp1, boolean b) throws DeviceManagementException { + return null; + } + @Override public Device getDevice(DeviceIdentifier deviceIdentifier) throws DeviceManagementException { if (TestUtils.getDeviceId().equals(deviceIdentifier.getId())) { @@ -466,7 +477,7 @@ public class DeviceManagementProviderServiceMock implements DeviceManagementProv } @Override - public List getDeviceStatusHistory(Device device, Date date, Date date1) throws DeviceManagementException { + public List getDeviceStatusHistory(Device device, Date date, Date date1, boolean b) throws DeviceManagementException { return null; }