100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps
Java asset-managementbuildingdashboarddataplatformdevice-managementedge-computingenergyenergy-managementenergy-monitorfleet-managementfleet-telematicsiotiot-applicationiot-platformmodbusmqttmqtt-brokerota-updaterules-enginesmartcity
Fixed test for notification when alarm rules
Eric Bariaux5ddd2e7df761
diff --git a/manager/test/src/test/groovy/org/openremote/test/rules/apartment/ApartmentNotificationWhenAlarmTest.groovy b/manager/test/src/test/groovy/org/openremote/test/rules/apartment/ApartmentNotificationWhenAlarmTest.groovyindex 97879f2b9..daee4f057 100644--- a/manager/test/src/test/groovy/org/openremote/test/rules/apartment/ApartmentNotificationWhenAlarmTest.groovy+++ b/manager/test/src/test/groovy/org/openremote/test/rules/apartment/ApartmentNotificationWhenAlarmTest.groovy@@ -41,8 +41,9 @@ class ApartmentNotificationWhenAlarmTest extends Specification implements Manag}and: "the alarm enabled, presence detected flag and timestamp of the room should not be set"+ def apartment1Asset = assetStorageService.find(managerDemoSetup.apartment1Id, true)+ assert !apartment1Asset.getAttribute("alarmEnabled").get().valueAsBooleandef livingRoomAsset = assetStorageService.find(managerDemoSetup.apartment1LivingroomId, true)- assert !livingRoomAsset.getAttribute("alarmEnabled").get().valueAsBooleanassert !livingRoomAsset.getAttribute("presenceDetected").get().valueAsBooleanassert livingRoomAsset.getAttribute("lastPresenceDetected").get().value.getType() == JsonType.NULL@@ -55,7 +56,7 @@ class ApartmentNotificationWhenAlarmTest extends Specification implements Managthen: "that value should be stored"conditions.eventually {def asset = assetStorageService.find(managerDemoSetup.apartment1Id, true)- assert asset.getAttribute("alarmEnabled").get().valueAsBoolean()+ assert asset.getAttribute("alarmEnabled").get().valueAsBoolean}cleanup: "the server should be stopped"