aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2023-01-29 09:33:16 -0800
committerAnton Tananaev <anton@traccar.org>2023-01-29 09:33:16 -0800
commitf4f1b05f8d5211476ae073d8a3c2dbd10cbcbe8a (patch)
tree7b8bc4f17f69403809fc7a5812ac5d534be1a482 /src/test
parent7df40dd7e6068c09e84080c6d47b577e51426e70 (diff)
downloadtrackermap-server-f4f1b05f8d5211476ae073d8a3c2dbd10cbcbe8a.tar.gz
trackermap-server-f4f1b05f8d5211476ae073d8a3c2dbd10cbcbe8a.tar.bz2
trackermap-server-f4f1b05f8d5211476ae073d8a3c2dbd10cbcbe8a.zip
Upgrade JXLS library
Diffstat (limited to 'src/test')
-rw-r--r--src/test/java/org/traccar/handler/ComputedAttributesTest.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/java/org/traccar/handler/ComputedAttributesTest.java b/src/test/java/org/traccar/handler/ComputedAttributesTest.java
index 2668c4f14..0beef9c57 100644
--- a/src/test/java/org/traccar/handler/ComputedAttributesTest.java
+++ b/src/test/java/org/traccar/handler/ComputedAttributesTest.java
@@ -41,7 +41,7 @@ public class ComputedAttributesTest {
attribute.setExpression("(bitFlag & 4) != 0");
assertEquals(true, handler.computeAttribute(attribute, position));
- attribute.setExpression("if (event == 42) \"lowBattery\"");
+ attribute.setExpression("event == 42 ? \"lowBattery\" : null");
assertEquals("lowBattery", handler.computeAttribute(attribute, position));
attribute.setExpression("speed > 5 && valid");