diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2020-09-29 09:28:53 -0700 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2020-09-29 09:28:53 -0700 |
commit | 1e06b00e5f6068a191d0652798f12df77f0b0e0a (patch) | |
tree | 76b5f0f009d66017f445f57101b96a094cdf962c /src/test/java/org/traccar/helper | |
parent | c7e630f4904e073127c573951336be25735bf687 (diff) | |
download | traccar-server-1e06b00e5f6068a191d0652798f12df77f0b0e0a.tar.gz traccar-server-1e06b00e5f6068a191d0652798f12df77f0b0e0a.tar.bz2 traccar-server-1e06b00e5f6068a191d0652798f12df77f0b0e0a.zip |
Handle long OBD values
Diffstat (limited to 'src/test/java/org/traccar/helper')
-rw-r--r-- | src/test/java/org/traccar/helper/ObdDecoderTest.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/test/java/org/traccar/helper/ObdDecoderTest.java b/src/test/java/org/traccar/helper/ObdDecoderTest.java index 1ffe68c8b..d5071bd51 100644 --- a/src/test/java/org/traccar/helper/ObdDecoderTest.java +++ b/src/test/java/org/traccar/helper/ObdDecoderTest.java @@ -9,11 +9,11 @@ public class ObdDecoderTest { @Test public void testDecode() { - assertEquals(83, ObdDecoder.decode(0x01, "057b").getValue()); - assertEquals(1225, ObdDecoder.decode(0x01, "0C1324").getValue()); - assertEquals(20, ObdDecoder.decode(0x01, "0D14").getValue()); - assertEquals(64050, ObdDecoder.decode(0x01, "31fa32").getValue()); - assertEquals(25, ObdDecoder.decode(0x01, "2F41").getValue()); + assertEquals(83L, ObdDecoder.decode(0x01, "057b").getValue()); + assertEquals(1225L, ObdDecoder.decode(0x01, "0C1324").getValue()); + assertEquals(20L, ObdDecoder.decode(0x01, "0D14").getValue()); + assertEquals(64050L, ObdDecoder.decode(0x01, "31fa32").getValue()); + assertEquals(25L, ObdDecoder.decode(0x01, "2F41").getValue()); } |