diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-09-12 21:45:59 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-09-12 21:45:59 +1200 |
commit | 9cc4cb27a5de80794f11a2e659ecde0e44bbb7b6 (patch) | |
tree | 75862e3d902e50fd132f3e6b5311bddfa1fde0f1 /test/org/traccar/protocol/Pt502ProtocolDecoderTest.java | |
parent | 1a43a20487bf187c6c759eedce273b38159ea140 (diff) | |
download | trackermap-server-9cc4cb27a5de80794f11a2e659ecde0e44bbb7b6.tar.gz trackermap-server-9cc4cb27a5de80794f11a2e659ecde0e44bbb7b6.tar.bz2 trackermap-server-9cc4cb27a5de80794f11a2e659ecde0e44bbb7b6.zip |
Improve PT502 decoder pattern
Diffstat (limited to 'test/org/traccar/protocol/Pt502ProtocolDecoderTest.java')
-rw-r--r-- | test/org/traccar/protocol/Pt502ProtocolDecoderTest.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/org/traccar/protocol/Pt502ProtocolDecoderTest.java b/test/org/traccar/protocol/Pt502ProtocolDecoderTest.java index f012c8e8a..06740a271 100644 --- a/test/org/traccar/protocol/Pt502ProtocolDecoderTest.java +++ b/test/org/traccar/protocol/Pt502ProtocolDecoderTest.java @@ -1,8 +1,7 @@ package org.traccar.protocol; -import org.traccar.helper.TestIdentityManager; -import static org.traccar.helper.DecoderVerifier.verify; import org.junit.Test; +import static org.traccar.helper.DecoderVerifier.verify; public class Pt502ProtocolDecoderTest extends ProtocolDecoderTest { @@ -10,6 +9,9 @@ public class Pt502ProtocolDecoderTest extends ProtocolDecoderTest { public void testDecode() throws Exception { Pt502ProtocolDecoder decoder = new Pt502ProtocolDecoder(new Pt502Protocol()); + + verify(decoder.decode(null, null, + "$POS,216769295715,163237.000,A,3258.1738,S,02755.4350,E,0.00,215.88,100915,,,A/0000,0//232300//5b3/")); verify(decoder.decode(null, null, "$POS,11023456,033731.000,A,0335.2617,N,09841.1587,E,0.00,88.12,210615,,,A/0000,0/1f8/388900//f33//")); |