aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-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());
+ }
+
}