Fixed build and test failures after upstream merge

revert-70aa11f8
charitha 7 years ago
parent 5f0c2f18ce
commit b5b3647668

@ -430,8 +430,9 @@ public final class DeviceManagerUtil {
public static boolean isPublishOperationResponseEnabled() throws DeviceManagementException { public static boolean isPublishOperationResponseEnabled() throws DeviceManagementException {
DeviceManagementConfig deviceManagementConfig = DeviceConfigurationManager.getInstance(). DeviceManagementConfig deviceManagementConfig = DeviceConfigurationManager.getInstance().
getDeviceManagementConfig(); getDeviceManagementConfig();
if (deviceManagementConfig != null && isOperationAnalyticsEnabled()) { if (deviceManagementConfig != null) {
return deviceManagementConfig.getOperationAnalyticsConfiguration().getPublishOperationResponse(); return isOperationAnalyticsEnabled()
&& deviceManagementConfig.getOperationAnalyticsConfiguration().getPublishOperationResponse();
} else { } else {
throw new DeviceManagementException("Device-Mgt configuration has not initialized. Please check the " + throw new DeviceManagementException("Device-Mgt configuration has not initialized. Please check the " +
"cdm-config.xml file."); "cdm-config.xml file.");

@ -59,8 +59,6 @@ public class TestDataHolder {
public static DeviceInfo generateDummyDeviceInfo() { public static DeviceInfo generateDummyDeviceInfo() {
DeviceInfo deviceInfo = new DeviceInfo(); DeviceInfo deviceInfo = new DeviceInfo();
deviceInfo.setIMEI("IMEI-12345");
deviceInfo.setIMSI("IMSI-12344");
deviceInfo.setDeviceModel("DUMMY_MODEL"); deviceInfo.setDeviceModel("DUMMY_MODEL");
deviceInfo.setVendor("WSO2"); deviceInfo.setVendor("WSO2");
deviceInfo.setOsVersion("OREO"); deviceInfo.setOsVersion("OREO");

@ -23,14 +23,14 @@
<parent> <parent>
<groupId>org.wso2.carbon.devicemgt</groupId> <groupId>org.wso2.carbon.devicemgt</groupId>
<artifactId>device-mgt-feature</artifactId> <artifactId>device-mgt-feature</artifactId>
<version>3.0.119-SNAPSHOT</version> <version>3.0.136-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath> <relativePath>../pom.xml</relativePath>
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<artifactId>org.wso2.carbon.device.mgt.basics.feature</artifactId> <artifactId>org.wso2.carbon.device.mgt.basics.feature</artifactId>
<packaging>pom</packaging> <packaging>pom</packaging>
<version>3.0.119-SNAPSHOT</version> <version>3.0.136-SNAPSHOT</version>
<name>WSO2 Carbon - Device Management Basics Feature</name> <name>WSO2 Carbon - Device Management Basics Feature</name>
<url>http://wso2.org</url> <url>http://wso2.org</url>
<description>This feature contains the core bundles required for Basic Device Management functionality <description>This feature contains the core bundles required for Basic Device Management functionality

Loading…
Cancel
Save