From 6ac5e8cef0be902b7067c6d9c4b30c4740d3dffd Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Mon, 2 Jun 2014 22:39:48 +1200 Subject: Implement Freedom protocol --- .../protocol/FreedomProtocolDecoderTest.java | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 test/org/traccar/protocol/FreedomProtocolDecoderTest.java (limited to 'test') diff --git a/test/org/traccar/protocol/FreedomProtocolDecoderTest.java b/test/org/traccar/protocol/FreedomProtocolDecoderTest.java new file mode 100644 index 000000000..ead8c980b --- /dev/null +++ b/test/org/traccar/protocol/FreedomProtocolDecoderTest.java @@ -0,0 +1,21 @@ +package org.traccar.protocol; + +import org.traccar.helper.TestDataManager; +import static org.traccar.helper.DecoderVerifier.verify; +import static org.junit.Assert.assertNull; +import org.junit.Test; + +public class FreedomProtocolDecoderTest { + + @Test + public void testDecode() throws Exception { + + FreedomProtocolDecoder decoder = new FreedomProtocolDecoder(null); + decoder.setDataManager(new TestDataManager()); + + verify(decoder.decode(null, null, + "IMEI,353358011714362,2014/05/22, 20:49:32, N, Lat:4725.9624, E, Lon:01912.5483, Spd:5.05")); + + } + +} -- cgit v1.2.3