Add tests - device type filtering and limit results in device types retrieve endpoint

This commit is contained in:
Pahansith Gunathilake 2020-01-29 11:57:07 +00:00 committed by Dharmakeerthi Lasantha
parent 440596874f
commit 3238655c2c
2 changed files with 21 additions and 0 deletions

View File

@ -78,6 +78,7 @@ import java.util.List;
import java.util.Map;
public class DeviceManagementProviderServiceMock implements DeviceManagementProviderService {
@Override
public List<Device> getAllDevices(String s) throws DeviceManagementException {
return null;
@ -613,6 +614,12 @@ public class DeviceManagementProviderServiceMock implements DeviceManagementProv
return null;
}
@Override
public List<DeviceType> getDeviceTypes(PaginationRequest paginationRequest)
throws DeviceManagementException {
return null;
}
@Override
public List<DeviceLocationHistory> getDeviceLocationInfo(DeviceIdentifier deviceIdentifier, long l,
long l1) throws DeviceManagementException {

View File

@ -19,6 +19,8 @@ package org.wso2.carbon.device.mgt.mobile.android.core.mokcs;
import org.wso2.carbon.device.mgt.common.DeviceIdentifier;
import org.wso2.carbon.device.mgt.common.Feature;
import org.wso2.carbon.device.mgt.common.PaginationRequest;
import org.wso2.carbon.device.mgt.common.PaginationResult;
import org.wso2.carbon.device.mgt.common.policy.mgt.Policy;
import org.wso2.carbon.device.mgt.common.policy.mgt.Profile;
import org.wso2.carbon.device.mgt.common.policy.mgt.ProfileFeature;
@ -139,4 +141,16 @@ public class PolicyManagerServiceMock implements PolicyManagerService {
public boolean isCompliant(DeviceIdentifier deviceIdentifier) throws PolicyComplianceException {
return false;
}
@Override
public PaginationResult getPolicyCompliance(PaginationRequest paginationRequest, String s,
boolean b, boolean b1, String s1, String s2)
throws PolicyComplianceException {
return null;
}
@Override
public List<ComplianceFeature> getNoneComplianceFeatures(int i) throws PolicyComplianceException {
return null;
}
}