Skip to content

armgit / core

Public Imported from GitHub
0

100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps

Fixed broken test

Rich Turnerafe2f57ce180
diff --git a/test/src/test/groovy/org/openremote/test/assets/AssetQueryTest.groovy b/test/src/test/groovy/org/openremote/test/assets/AssetQueryTest.groovy
index e46d1f7c7..1c5a2125d 100644
--- a/test/src/test/groovy/org/openremote/test/assets/AssetQueryTest.groovy
+++ b/test/src/test/groovy/org/openremote/test/assets/AssetQueryTest.groovy
@@ -156,12 +156,14 @@ class AssetQueryTest extends Specification implements ManagerContainerTrait {
assets[1].tenantDisplayName == null
assets[1].coordinates == null
assets[1].path == null
- assets[1].getAttributesList().size() == 6
+ assets[1].getAttributesList().size() == 7
assets[1].getAttribute("alarmEnabled").isPresent()
assets[1].getAttribute("vacationUntil").isPresent()
assets[1].getAttribute("autoSceneSchedule").isPresent()
assets[1].getAttribute("lastExecutedScene").isPresent()
assets[1].getAttribute("presenceDetected").isPresent()
+ assets[1].getAttribute("lastDetectedScene").isPresent()
+ assets[1].getAttribute("smartStart").isPresent()
assets[1].getAttribute("alarmEnabled").get().meta.size() == 1
assets[1].getAttribute("alarmEnabled").get().getMetaItem(AssetMeta.LABEL).isPresent()
assets[1].getAttribute("alarmEnabled").get().getLabelOrName().get() == "Alarm enabled"