From 7c4ca89beb30ae2de66d14ee134672e22e87d056 Mon Sep 17 00:00:00 2001 From: geethkokila Date: Mon, 22 Jan 2018 15:13:43 +0530 Subject: [PATCH] Removing extra lines --- .../device/type/template/config/PolicyMonitoring.java | 2 +- .../carbon/policy/mgt/core/PolicyManagerServiceImplTest.java | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.extensions/src/main/java/org/wso2/carbon/device/mgt/extensions/device/type/template/config/PolicyMonitoring.java b/components/device-mgt/org.wso2.carbon.device.mgt.extensions/src/main/java/org/wso2/carbon/device/mgt/extensions/device/type/template/config/PolicyMonitoring.java index 99a3030245..251c598666 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.extensions/src/main/java/org/wso2/carbon/device/mgt/extensions/device/type/template/config/PolicyMonitoring.java +++ b/components/device-mgt/org.wso2.carbon.device.mgt.extensions/src/main/java/org/wso2/carbon/device/mgt/extensions/device/type/template/config/PolicyMonitoring.java @@ -52,7 +52,7 @@ public class PolicyMonitoring { protected String value; @XmlAttribute(name = "enabled") protected boolean enabled; - + /** * Gets the value of the value property. * diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/java/org/wso2/carbon/policy/mgt/core/PolicyManagerServiceImplTest.java b/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/java/org/wso2/carbon/policy/mgt/core/PolicyManagerServiceImplTest.java index 78a98c229a..adddbfd3f0 100644 --- a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/java/org/wso2/carbon/policy/mgt/core/PolicyManagerServiceImplTest.java +++ b/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/test/java/org/wso2/carbon/policy/mgt/core/PolicyManagerServiceImplTest.java @@ -279,7 +279,6 @@ public class PolicyManagerServiceImplTest extends BasePolicyManagementDAOTest { complianceFeature.setCompliance(false); complianceFeatures.add(complianceFeature); - Device device = DeviceManagementDataHolder.getInstance().getDeviceManagementProvider(). getDevice(new DeviceIdentifier(DEVICE1, DEVICE_TYPE_A), false); List deviceList = new ArrayList<>(); @@ -287,8 +286,7 @@ public class PolicyManagerServiceImplTest extends BasePolicyManagementDAOTest { MonitoringManager mm = new MonitoringManagerImpl(); mm.addMonitoringOperation(deviceList); - - + policyManagerService.checkCompliance(new DeviceIdentifier(DEVICE1, DEVICE_TYPE_A), complianceFeatures); boolean deviceCompliance = policyManagerService.isCompliant(new DeviceIdentifier(DEVICE1, DEVICE_TYPE_A)); Assert.assertFalse(deviceCompliance, "Policy was compliant even though the response was not compliant");