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 code based on lastest changes on Attribute model
Eric Bariaux2473092cc159
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 b4f7ec8da..4a4dee4e7 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@@ -18,20 +18,25 @@ class ApartmentNotificationWhenAlarmTest extends Specification implements Managdef "Trigger notification when presence is detected and alarm is set"() {given: "the container environment is started"- def conditions = new PollingConditions(timeout: 10, delay: 1)+ def conditions = new PollingConditions(timeout: 15, delay: 1)def serverPort = findEphemeralPort()def container = startContainerWithPseudoClock(defaultConfig(serverPort), defaultServices())def managerDemoSetup = container.getService(SetupService.class).getTaskOfType(ManagerDemoSetup.class)def rulesService = container.getService(RulesService.class)def assetProcessingService = container.getService(AssetProcessingService.class)def assetStorageService = container.getService(AssetStorageService.class)- RulesEngine apartment1Engine = null+ RulesEngine apartment1Engineexpect: "the rule engines to become available and be running"conditions.eventually {apartment1Engine = rulesService.assetEngines.get(managerDemoSetup.apartment1Id)assert apartment1Engine != nullassert apartment1Engine.isRunning()+ }++ and: "the demo attributes marked with RULE_STATE = true meta should be inserted into the engines"+ conditions.eventually {+ assert apartment1Engine.assetStates.size() == DEMO_RULE_STATES_APARTMENT_1assert apartment1Engine.knowledgeSession.factCount == DEMO_RULE_STATES_APARTMENT_1}