aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-09-23 15:32:43 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2015-09-23 15:32:43 +1200
commite61e883a013d7e46f42d1037dcf79857a9a558b9 (patch)
treead54ed23800321efa0013e5094ff48e90e56dcee /test
parenta228c176c61dcb69815d5667a418f6d77eb40d16 (diff)
downloadtraccar-server-e61e883a013d7e46f42d1037dcf79857a9a558b9.tar.gz
traccar-server-e61e883a013d7e46f42d1037dcf79857a9a558b9.tar.bz2
traccar-server-e61e883a013d7e46f42d1037dcf79857a9a558b9.zip
Extend megastek protocol decoder
Diffstat (limited to 'test')
-rw-r--r--test/org/traccar/protocol/MegastekProtocolDecoderTest.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/org/traccar/protocol/MegastekProtocolDecoderTest.java b/test/org/traccar/protocol/MegastekProtocolDecoderTest.java
index 7c0cedb8c..ece6b6642 100644
--- a/test/org/traccar/protocol/MegastekProtocolDecoderTest.java
+++ b/test/org/traccar/protocol/MegastekProtocolDecoderTest.java
@@ -9,7 +9,10 @@ public class MegastekProtocolDecoderTest extends ProtocolDecoderTest {
public void testDecode() throws Exception {
MegastekProtocolDecoder decoder = new MegastekProtocolDecoder(new MegastekProtocol());
-
+
+ verify(decoder.decode(null, null,
+ "$MGV002,860719020193193,DeviceName,R,240214,104742,A,2238.20471,N,11401.97967,E,00,03,00,1.20,0.462,356.23,137.9,1.5,460,07,262C,0F54,25,0000,0000,0,0,0,28.5,28.3,,,100,Timer;!"));
+
verify(decoder.decode(null, null,
"STX2010101801 j$GPRMC,101053.000,A,2232.7607,N,11404.7669,E,0.00,,231110,,,A*7F,460,00,2795,0E6A,14,94,1000,0000,91,Timer;1D"));