aboutsummaryrefslogtreecommitdiff
path: root/test/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2017-02-11 11:20:21 +1300
committerGitHub <noreply@github.com>2017-02-11 11:20:21 +1300
commit11dc8a90be97e01212204c4dd925b54efddc3ed9 (patch)
tree7a7103d514f4046888f0a10f242955fbeaa96170 /test/org
parent2c0360abc0801db0d81dd16d540485671a473a00 (diff)
parentf778d3a61c8131ee3007752a41a824f0d2fbcebc (diff)
downloadtraccar-server-11dc8a90be97e01212204c4dd925b54efddc3ed9.tar.gz
traccar-server-11dc8a90be97e01212204c4dd925b54efddc3ed9.tar.bz2
traccar-server-11dc8a90be97e01212204c4dd925b54efddc3ed9.zip
Merge pull request #2897 from danglotb/ampl-obddecodertest
Improve test cases on ObdDecoder
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());
+ }
+
}