diff options
Diffstat (limited to 'test/org')
-rw-r--r-- | test/org/traccar/protocol/Vt300ProtocolDecoderTest.java | 19 |
1 files changed, 19 insertions, 0 deletions
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")); + + } + +} |