From 119b1a9562aee0072c034017405df4cc94feaf35 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Fri, 2 Nov 2012 23:22:25 +1300 Subject: Add PT502 protocol (fix #75) --- .../org/traccar/protocol/Pt502ProtocolDecoderTest.java | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 test/org/traccar/protocol/Pt502ProtocolDecoderTest.java (limited to 'test') diff --git a/test/org/traccar/protocol/Pt502ProtocolDecoderTest.java b/test/org/traccar/protocol/Pt502ProtocolDecoderTest.java new file mode 100644 index 000000000..8b8881bd8 --- /dev/null +++ b/test/org/traccar/protocol/Pt502ProtocolDecoderTest.java @@ -0,0 +1,18 @@ +package org.traccar.protocol; + +import static org.junit.Assert.assertNotNull; +import org.junit.Test; + +public class Pt502ProtocolDecoderTest { + + @Test + public void testDecode() throws Exception { + + Pt502ProtocolDecoder decoder = new Pt502ProtocolDecoder(new TestDataManager()); + + assertNotNull(decoder.decode(null, null, + "$POS,6094,205523.000,A,1013.6223,N,06728.4248,W,0.0,99.3,011112,,,A/00000,00000/0/23895000//")); + + } + +} -- cgit v1.2.3