From f778d3a61c8131ee3007752a41a824f0d2fbcebc Mon Sep 17 00:00:00 2001 From: bdanglot Date: Fri, 10 Feb 2017 16:22:35 +0100 Subject: add test cases on decodeCodes --- test/org/traccar/helper/ObdDecoderTest.java | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test/org/traccar/helper') 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()); + } + } -- cgit v1.2.3