From 82965326887d0867f8edf29e638630c2ee85423c Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Wed, 13 Feb 2013 20:41:08 +1300 Subject: Added Syrus protocol (fix #133) --- .../traccar/protocol/SyrusProtocolDecoderTest.java | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 test/org/traccar/protocol/SyrusProtocolDecoderTest.java (limited to 'test') diff --git a/test/org/traccar/protocol/SyrusProtocolDecoderTest.java b/test/org/traccar/protocol/SyrusProtocolDecoderTest.java new file mode 100644 index 000000000..d8a704dff --- /dev/null +++ b/test/org/traccar/protocol/SyrusProtocolDecoderTest.java @@ -0,0 +1,22 @@ +package org.traccar.protocol; + +import static org.junit.Assert.assertNotNull; +import org.junit.Test; + +public class SyrusProtocolDecoderTest { + + @Test + public void testDecode() throws Exception { + + SyrusProtocolDecoder decoder = new SyrusProtocolDecoder(null); + decoder.setDataManager(new TestDataManager()); + + assertNotNull(decoder.decode(null, null, + "\r\n>REV691615354941+3570173+1397742703203212;ID=Test")); + + assertNotNull(decoder.decode(null, null, + ">REV481599462982+2578391-0802945201228512;ID=Test")); + + } + +} -- cgit v1.2.3