aboutsummaryrefslogtreecommitdiff
path: root/test/org
diff options
context:
space:
mode:
authorbdanglot <bdanglot@gmail.com>2017-02-10 16:22:35 +0100
committerbdanglot <bdanglot@gmail.com>2017-02-10 16:22:35 +0100
commitf778d3a61c8131ee3007752a41a824f0d2fbcebc (patch)
tree878210a2b9c94dde9338e5eaa2bceab8a921f4a4 /test/org
parent23660ca2426b670abf6b0899fe796d4012a81589 (diff)
downloadtraccar-server-f778d3a61c8131ee3007752a41a824f0d2fbcebc.tar.gz
traccar-server-f778d3a61c8131ee3007752a41a824f0d2fbcebc.tar.bz2
traccar-server-f778d3a61c8131ee3007752a41a824f0d2fbcebc.zip
add test cases on decodeCodes
Diffstat (limited to 'test/org')
-rw-r--r--test/org/traccar/helper/ObdDecoderTest.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/org/traccar/helper/ObdDecoderTest.java b/test/org/traccar/helper/ObdDecoderTest.java
index 62881b66c..db84d46d7 100644
--- a/test/org/traccar/helper/ObdDecoderTest.java
+++ b/test/org/traccar/helper/ObdDecoderTest.java
@@ -16,4 +16,10 @@ public class ObdDecoderTest {
}
+ @Test
+ public void testDecodeCodes() throws Exception {
+ Assert.assertEquals("P0D14", ObdDecoder.decodeCodes("0D14").getValue());
+ Assert.assertEquals("dtcs", ObdDecoder.decodeCodes("0D14").getKey());
+ }
+
}