diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-09-18 10:59:56 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-09-18 10:59:56 +1200 |
commit | d4e4948bfce5b088f505ff9c89dd8baad34ed16c (patch) | |
tree | ff8de9711b3e887cfede151a2a3fd48e57fab797 /test/org/traccar | |
parent | 8baf73493d24c85bc5d13069044fc1150ed62c2e (diff) | |
download | traccar-server-d4e4948bfce5b088f505ff9c89dd8baad34ed16c.tar.gz traccar-server-d4e4948bfce5b088f505ff9c89dd8baad34ed16c.tar.bz2 traccar-server-d4e4948bfce5b088f505ff9c89dd8baad34ed16c.zip |
Improve TK103 decoder pattern
Diffstat (limited to 'test/org/traccar')
-rw-r--r-- | test/org/traccar/protocol/Tk103ProtocolDecoderTest.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/Tk103ProtocolDecoderTest.java b/test/org/traccar/protocol/Tk103ProtocolDecoderTest.java index 0cfd790d8..452745189 100644 --- a/test/org/traccar/protocol/Tk103ProtocolDecoderTest.java +++ b/test/org/traccar/protocol/Tk103ProtocolDecoderTest.java @@ -10,6 +10,12 @@ public class Tk103ProtocolDecoderTest extends ProtocolDecoderTest { public void testDecode() throws Exception { Tk103ProtocolDecoder decoder = new Tk103ProtocolDecoder(new Tk103Protocol()); + + verify(decoder.decode(null, null, + "(088048003342BP05354188048003342150917A1352.9801N10030.9050E000.0103115265.5600010000L000003F9)")); + + verify(decoder.decode(null, null, + "(088048003342BR00150917A1352.9801N10030.9050E000.0103224000.0000010000L000003F9)")); verify(decoder.decode(null, null, "(088048003342BR00150807A1352.9871N10030.9084E000.0110718000.0001010000L00000000)")); |