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
Michael Rademakercdd9955ee627
diff --git a/test/src/test/groovy/org/openremote/test/assets/AssetDatapointTest.groovy b/test/src/test/groovy/org/openremote/test/assets/AssetDatapointTest.groovyindex 87f9fac55..2616b0d7e 100644--- a/test/src/test/groovy/org/openremote/test/assets/AssetDatapointTest.groovy+++ b/test/src/test/groovy/org/openremote/test/assets/AssetDatapointTest.groovy@@ -107,8 +107,9 @@ class AssetDatapointTest extends Specification implements ManagerContainerTraitdef thing = assetStorageService.find(managerDemoSetup.thingId, true)def aggregatedDatapoints = assetDatapointService.getValueDatapoints(thing.getAttribute("light1PowerConsumption").orElseThrow({ new RuntimeException("Missing attribute")}),- DatapointInterval.HOUR,- getClockTimeOf(container)+ DatapointInterval.MINUTE,+ getClockTimeOf(container),+ getClockTimeOf(container) + 3600000)assert aggregatedDatapoints.size() == 61}@@ -170,8 +171,9 @@ class AssetDatapointTest extends Specification implements ManagerContainerTraitdef thing = assetStorageService.find(managerDemoSetup.thingId, true)def aggregatedDatapoints = assetDatapointService.getValueDatapoints(thing.getAttribute(thingLightToggleAttributeName).orElseThrow({ new RuntimeException("Missing attribute")}),- DatapointInterval.HOUR,- getClockTimeOf(container)+ DatapointInterval.MINUTE,+ getClockTimeOf(container),+ getClockTimeOf(container) + 3600000)assert aggregatedDatapoints.size() == 61}