|
|
@ -279,7 +279,6 @@ public class PolicyManagerServiceImplTest extends BasePolicyManagementDAOTest {
|
|
|
|
complianceFeature.setCompliance(false);
|
|
|
|
complianceFeature.setCompliance(false);
|
|
|
|
complianceFeatures.add(complianceFeature);
|
|
|
|
complianceFeatures.add(complianceFeature);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Device device = DeviceManagementDataHolder.getInstance().getDeviceManagementProvider().
|
|
|
|
Device device = DeviceManagementDataHolder.getInstance().getDeviceManagementProvider().
|
|
|
|
getDevice(new DeviceIdentifier(DEVICE1, DEVICE_TYPE_A), false);
|
|
|
|
getDevice(new DeviceIdentifier(DEVICE1, DEVICE_TYPE_A), false);
|
|
|
|
List<Device> deviceList = new ArrayList<>();
|
|
|
|
List<Device> deviceList = new ArrayList<>();
|
|
|
@ -287,8 +286,7 @@ public class PolicyManagerServiceImplTest extends BasePolicyManagementDAOTest {
|
|
|
|
|
|
|
|
|
|
|
|
MonitoringManager mm = new MonitoringManagerImpl();
|
|
|
|
MonitoringManager mm = new MonitoringManagerImpl();
|
|
|
|
mm.addMonitoringOperation(deviceList);
|
|
|
|
mm.addMonitoringOperation(deviceList);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
policyManagerService.checkCompliance(new DeviceIdentifier(DEVICE1, DEVICE_TYPE_A), complianceFeatures);
|
|
|
|
policyManagerService.checkCompliance(new DeviceIdentifier(DEVICE1, DEVICE_TYPE_A), complianceFeatures);
|
|
|
|
boolean deviceCompliance = policyManagerService.isCompliant(new DeviceIdentifier(DEVICE1, DEVICE_TYPE_A));
|
|
|
|
boolean deviceCompliance = policyManagerService.isCompliant(new DeviceIdentifier(DEVICE1, DEVICE_TYPE_A));
|
|
|
|
Assert.assertFalse(deviceCompliance, "Policy was compliant even though the response was not compliant");
|
|
|
|
Assert.assertFalse(deviceCompliance, "Policy was compliant even though the response was not compliant");
|
|
|
|