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

revert-dabc3590
Pahansith Gunathilake 5 years ago committed by Dharmakeerthi Lasantha
parent 440596874f
commit 3238655c2c

@ -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 {

@ -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;
}
}

Loading…
Cancel
Save