From 91436e6a790b6c01c7af7d6c73c8783896c6cd87 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sun, 17 Mar 2013 15:12:52 +1300 Subject: Add VT300 protocol --- .../traccar/protocol/Vt300ProtocolDecoderTest.java | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 test/org/traccar/protocol/Vt300ProtocolDecoderTest.java (limited to 'test') diff --git a/test/org/traccar/protocol/Vt300ProtocolDecoderTest.java b/test/org/traccar/protocol/Vt300ProtocolDecoderTest.java new file mode 100644 index 000000000..5a1bf685f --- /dev/null +++ b/test/org/traccar/protocol/Vt300ProtocolDecoderTest.java @@ -0,0 +1,19 @@ +package org.traccar.protocol; + +import static org.junit.Assert.assertNotNull; +import org.junit.Test; + +public class Vt300ProtocolDecoderTest { + + @Test + public void testDecode() throws Exception { + + Vt300ProtocolDecoder decoder = new Vt300ProtocolDecoder(null); + decoder.setDataManager(new TestDataManager()); + + assertNotNull(decoder.decode(null, null, + "210000001,20070313170040,121.123456,12.654321,0,233,0,9,2,0.0,0,0.00,0.00,0")); + + } + +} -- cgit v1.2.3