diff options
author | Anton Tananaev <anton@traccar.org> | 2023-01-29 09:33:16 -0800 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2023-01-29 09:33:16 -0800 |
commit | f4f1b05f8d5211476ae073d8a3c2dbd10cbcbe8a (patch) | |
tree | 7b8bc4f17f69403809fc7a5812ac5d534be1a482 /src/test/java/org/traccar/handler/ComputedAttributesTest.java | |
parent | 7df40dd7e6068c09e84080c6d47b577e51426e70 (diff) | |
download | trackermap-server-f4f1b05f8d5211476ae073d8a3c2dbd10cbcbe8a.tar.gz trackermap-server-f4f1b05f8d5211476ae073d8a3c2dbd10cbcbe8a.tar.bz2 trackermap-server-f4f1b05f8d5211476ae073d8a3c2dbd10cbcbe8a.zip |
Upgrade JXLS library
Diffstat (limited to 'src/test/java/org/traccar/handler/ComputedAttributesTest.java')
-rw-r--r-- | src/test/java/org/traccar/handler/ComputedAttributesTest.java | 2 |
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"); |