aboutsummaryrefslogtreecommitdiff
path: root/test/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-08-30 07:55:13 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2016-08-30 07:55:13 +1200
commit4b1b94d63ee106ef8c61d9f8d976b601483ad14e (patch)
treeebcce00cb0648de2698ce33b667358741c55e689 /test/org
parentcbd55752405d65132a47205748435d937610ee7a (diff)
downloadtraccar-server-4b1b94d63ee106ef8c61d9f8d976b601483ad14e.tar.gz
traccar-server-4b1b94d63ee106ef8c61d9f8d976b601483ad14e.tar.bz2
traccar-server-4b1b94d63ee106ef8c61d9f8d976b601483ad14e.zip
Implement alarms for PT502 protocol
Diffstat (limited to 'test/org')
-rw-r--r--test/org/traccar/protocol/Pt502ProtocolDecoderTest.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/Pt502ProtocolDecoderTest.java b/test/org/traccar/protocol/Pt502ProtocolDecoderTest.java
index e8483fcff..333181625 100644
--- a/test/org/traccar/protocol/Pt502ProtocolDecoderTest.java
+++ b/test/org/traccar/protocol/Pt502ProtocolDecoderTest.java
@@ -9,6 +9,12 @@ public class Pt502ProtocolDecoderTest extends ProtocolTest {
public void testDecode() throws Exception {
Pt502ProtocolDecoder decoder = new Pt502ProtocolDecoder(new Pt502Protocol());
+
+ verifyPosition(decoder, text(
+ "$DFR,40456789,083125.000,A,2232.0971,N,11400.9504,E,0.0,5.00,090714,,,A/00000,00/0,0/200076//FE7/"));
+
+ verifyPosition(decoder, text(
+ "$FDA,40456789,083125.000,A,2232.0971,N,11400.9504,E,0.0,5.00,090714,,,A/00000,00/0,0/200076//FE7/"));
verifyPosition(decoder, text(
"$POS,216769295715,163237.000,A,3258.1738,S,02755.4350,E,0.00,215.88,100915,,,A/0000,0//232300//5b3/"),