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
Fix for DateTimePredicate test
Rich Turner4cdc738191fd
diff --git a/test/src/test/groovy/org/openremote/test/assets/AssetQueryTest.groovy b/test/src/test/groovy/org/openremote/test/assets/AssetQueryTest.groovyindex eda846d67..ea12ee155 100644--- a/test/src/test/groovy/org/openremote/test/assets/AssetQueryTest.groovy+++ b/test/src/test/groovy/org/openremote/test/assets/AssetQueryTest.groovy@@ -23,6 +23,7 @@ import javax.persistence.EntityManagerimport java.time.Instantimport java.time.LocalDateTimeimport java.time.ZoneId+import java.time.ZoneOffsetimport java.util.function.Functionimport static java.time.format.DateTimeFormatter.ISO_LOCAL_DATE_TIME@@ -867,8 +868,8 @@ class AssetQueryTest extends Specification implements ManagerContainerTrait {)lobby = assetStorageService.merge(lobby)- def rangeStart = LocalDateTime.ofInstant(Instant.ofEpochMilli(1517151600000), ZoneId.systemDefault()).minusHours(2) // 28/01/2018 @ 1:00pm (UTC)- def rangeEnd = LocalDateTime.ofInstant(Instant.ofEpochMilli(1517151600000), ZoneId.systemDefault()).plusHours(3) // 28/01/2018 @ 6:00pm (UTC)+ def rangeStart = LocalDateTime.ofInstant(Instant.ofEpochMilli(1517151600000), ZoneOffset.UTC).minusHours(2) // 28/01/2018 @ 1:00pm (UTC)+ def rangeEnd = LocalDateTime.ofInstant(Instant.ofEpochMilli(1517151600000), ZoneOffset.UTC).plusHours(3) // 28/01/2018 @ 6:00pm (UTC)def assets = assetStorageService.findAll(new AssetQuery()@@ -916,7 +917,7 @@ class AssetQueryTest extends Specification implements ManagerContainerTrait {assets[0].id == lobby.idwhen: "the lobby has an opening date and the date is equal to the filtering date"- rangeStart = LocalDateTime.ofInstant(Instant.ofEpochMilli(1517151600000), ZoneId.systemDefault()).minusHours(1) // 28/01/2018 @ 2:00pm (UTC)+ rangeStart = LocalDateTime.ofInstant(Instant.ofEpochMilli(1517151600000), ZoneOffset.UTC) // 28/01/2018 @ 2:00pm (UTC)assets = assetStorageService.findAll(new AssetQuery()