From ee4f40561f5cce1a9a07576662af69fadb9851ca Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sat, 23 Mar 2013 11:01:41 +1300 Subject: Add TK5000 support (fix #177) --- .../traccar/protocol/Vt300ProtocolDecoderTest.java | 19 ------------------- .../protocol/WondexProtocolDecoderTest.java | 22 ++++++++++++++++++++++ 2 files changed, 22 insertions(+), 19 deletions(-) delete mode 100644 test/org/traccar/protocol/Vt300ProtocolDecoderTest.java create mode 100644 test/org/traccar/protocol/WondexProtocolDecoderTest.java (limited to 'test/org/traccar/protocol') diff --git a/test/org/traccar/protocol/Vt300ProtocolDecoderTest.java b/test/org/traccar/protocol/Vt300ProtocolDecoderTest.java deleted file mode 100644 index 5a1bf685f..000000000 --- a/test/org/traccar/protocol/Vt300ProtocolDecoderTest.java +++ /dev/null @@ -1,19 +0,0 @@ -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")); - - } - -} diff --git a/test/org/traccar/protocol/WondexProtocolDecoderTest.java b/test/org/traccar/protocol/WondexProtocolDecoderTest.java new file mode 100644 index 000000000..e8e52c149 --- /dev/null +++ b/test/org/traccar/protocol/WondexProtocolDecoderTest.java @@ -0,0 +1,22 @@ +package org.traccar.protocol; + +import static org.junit.Assert.assertNotNull; +import org.junit.Test; + +public class WondexProtocolDecoderTest { + + @Test + public void testDecode() throws Exception { + + WondexProtocolDecoder decoder = new WondexProtocolDecoder(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")); + + assertNotNull(decoder.decode(null, null, + "1044989601,20130322172647,13.572583,52.401070,22,204,49,0,2")); + + } + +} -- cgit v1.2.3