aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar/protocol/MeitrackProtocolDecoderTest.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-05-31 20:07:39 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2015-05-31 20:07:39 +1200
commit57672030502b403fddd6a8f6b0a5dde35202c9c3 (patch)
treea3f7623a0035202acfe5ba9855ee3ae391104e26 /test/org/traccar/protocol/MeitrackProtocolDecoderTest.java
parent70863c500e4cba47eb09b08848a2105ebb108e31 (diff)
downloadtrackermap-server-57672030502b403fddd6a8f6b0a5dde35202c9c3.tar.gz
trackermap-server-57672030502b403fddd6a8f6b0a5dde35202c9c3.tar.bz2
trackermap-server-57672030502b403fddd6a8f6b0a5dde35202c9c3.zip
Implement Castel protocol
Diffstat (limited to 'test/org/traccar/protocol/MeitrackProtocolDecoderTest.java')
-rw-r--r--test/org/traccar/protocol/MeitrackProtocolDecoderTest.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/org/traccar/protocol/MeitrackProtocolDecoderTest.java b/test/org/traccar/protocol/MeitrackProtocolDecoderTest.java
index 339cddde5..6c3aa1b46 100644
--- a/test/org/traccar/protocol/MeitrackProtocolDecoderTest.java
+++ b/test/org/traccar/protocol/MeitrackProtocolDecoderTest.java
@@ -3,7 +3,6 @@ package org.traccar.protocol;
import java.nio.ByteOrder;
import java.nio.charset.Charset;
import org.jboss.netty.buffer.ChannelBuffers;
-import org.traccar.helper.TestDataManager;
import org.junit.Test;
import org.traccar.helper.ChannelBufferTools;
import static org.traccar.helper.DecoderVerifier.verify;
@@ -14,6 +13,9 @@ public class MeitrackProtocolDecoderTest extends ProtocolDecoderTest {
public void testDecode() throws Exception {
MeitrackProtocolDecoder decoder = new MeitrackProtocolDecoder(null);
+
+ verify(decoder.decode(null, null, ChannelBuffers.copiedBuffer(
+ "$$G145,862106024274815,AAA,35,-1.287125,36.906061,150530054639,A,10,13,12,67,0.8,1621,38359791,42330881,639|2|FB2|2F3,0000,3|0|0|A58|432,,,1,0009,*26", Charset.defaultCharset())));
verify(decoder.decode(null, null, ChannelBuffers.copiedBuffer(
"$$I152,013949004569813,AAA,37,54.739468,25.273648,150208173414,A,5,24,0,73,1.5,165,74,3381,246|1|0065|118A,0000,0003|0003|0000|08D4|0002,006380DF,,1,0008*7C", Charset.defaultCharset())));