aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar/protocol/SyrusProtocolDecoderTest.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2013-02-13 20:41:08 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2013-02-13 20:41:08 +1300
commit82965326887d0867f8edf29e638630c2ee85423c (patch)
treeb9b85b2ceadff02bc4b2ee6b5fe4de76ec486f08 /test/org/traccar/protocol/SyrusProtocolDecoderTest.java
parent6271b433cdada9b94b93db7f30bf8f8d7efe4b52 (diff)
downloadtrackermap-server-82965326887d0867f8edf29e638630c2ee85423c.tar.gz
trackermap-server-82965326887d0867f8edf29e638630c2ee85423c.tar.bz2
trackermap-server-82965326887d0867f8edf29e638630c2ee85423c.zip
Added Syrus protocol (fix #133)
Diffstat (limited to 'test/org/traccar/protocol/SyrusProtocolDecoderTest.java')
-rw-r--r--test/org/traccar/protocol/SyrusProtocolDecoderTest.java22
1 files changed, 22 insertions, 0 deletions
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"));
+
+ }
+
+}