|
|
@ -254,8 +254,8 @@ public class PolicyManagerServiceImplTest extends BasePolicyManagementDAOTest {
|
|
|
|
List<Device> deviceList = new ArrayList<>();
|
|
|
|
List<Device> deviceList = new ArrayList<>();
|
|
|
|
deviceList.add(device);
|
|
|
|
deviceList.add(device);
|
|
|
|
|
|
|
|
|
|
|
|
MonitoringManager mm = new MonitoringManagerImpl();
|
|
|
|
MonitoringManager manager = new MonitoringManagerImpl();
|
|
|
|
mm.addMonitoringOperation(deviceList);
|
|
|
|
manager.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));
|
|
|
@ -284,8 +284,8 @@ public class PolicyManagerServiceImplTest extends BasePolicyManagementDAOTest {
|
|
|
|
List<Device> deviceList = new ArrayList<>();
|
|
|
|
List<Device> deviceList = new ArrayList<>();
|
|
|
|
deviceList.add(device);
|
|
|
|
deviceList.add(device);
|
|
|
|
|
|
|
|
|
|
|
|
MonitoringManager mm = new MonitoringManagerImpl();
|
|
|
|
MonitoringManager manager = new MonitoringManagerImpl();
|
|
|
|
mm.addMonitoringOperation(deviceList);
|
|
|
|
manager.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));
|
|
|
|