Merge branch 'device-config-api' into 'master'

Add test case for newly added method on DeviceManagementProviderService

See merge request entgra/carbon-device-mgt-plugins!64
revert-dabc3590
Charitha Goonetilleke 5 years ago
commit 41fe269e46

@ -19,7 +19,9 @@
package org.wso2.carbon.mdm.services.android.mocks;
import org.wso2.carbon.device.mgt.common.*;
import org.wso2.carbon.device.mgt.common.configuration.mgt.AmbiguousConfigurationException;
import org.wso2.carbon.device.mgt.common.configuration.mgt.ConfigurationManagementException;
import org.wso2.carbon.device.mgt.common.configuration.mgt.DeviceConfiguration;
import org.wso2.carbon.device.mgt.common.configuration.mgt.PlatformConfiguration;
import org.wso2.carbon.device.mgt.common.license.mgt.License;
import org.wso2.carbon.device.mgt.common.operation.mgt.Activity;
@ -617,4 +619,11 @@ public class DeviceManagementProviderServiceMock implements DeviceManagementProv
public boolean updateEnrollment(String owner, List<String> deviceIdentifiers) {
return false;
}
@Override
public DeviceConfiguration getDeviceConfiguration(Map<String, String> propertyMap)
throws DeviceManagementException, DeviceNotFoundException, UnauthorizedDeviceAccessException,
AmbiguousConfigurationException{
return null;
}
}

@ -19,7 +19,9 @@
package org.wso2.carbon.mdm.services.android.mocks;
import org.wso2.carbon.device.mgt.common.*;
import org.wso2.carbon.device.mgt.common.configuration.mgt.AmbiguousConfigurationException;
import org.wso2.carbon.device.mgt.common.configuration.mgt.ConfigurationManagementException;
import org.wso2.carbon.device.mgt.common.configuration.mgt.DeviceConfiguration;
import org.wso2.carbon.device.mgt.common.configuration.mgt.PlatformConfiguration;
import org.wso2.carbon.device.mgt.common.license.mgt.License;
import org.wso2.carbon.device.mgt.common.operation.mgt.Activity;
@ -617,4 +619,11 @@ public class DeviceManagementProviderServiceMock implements DeviceManagementProv
public boolean updateEnrollment(String owner, List<String> deviceIdentifiers) {
return false;
}
@Override
public DeviceConfiguration getDeviceConfiguration(Map<String, String> propertyMap)
throws DeviceManagementException, DeviceNotFoundException, UnauthorizedDeviceAccessException,
AmbiguousConfigurationException{
return null;
}
}

Loading…
Cancel
Save